how can i check if Method/Property exist ?

Post Reply
User avatar
Jimmy
Posts: 1737
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

how can i check if Method/Property exist ?

Post by Jimmy »

hi,

is there a Function IsMethod() and IsProperty() under Fivewin :?:

i want to check if Method/Property exist
greeting,
Jimmy
AntoninoP
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy
Contact:

Re: how can i check if Method/Property exist ?

Post by AntoninoP »

there is the harbour one: __objHasMethod
User avatar
Jimmy
Posts: 1737
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: how can i check if Method/Property exist ?

Post by Jimmy »

hi,
AntoninoP wrote:there is the harbour one: __objHasMethod
oh, Yes

i have seen it in OOHG
do i have to include OOHG Modul or is it include in FiveWin :?:
greeting,
Jimmy
User avatar
Marc Venken
Posts: 1483
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: how can i check if Method/Property exist ?

Post by Marc Venken »

Jimmy, It works

If I put this code, It works without any rest code, so it is included

Code: Select all | Expand

   if __ObjHasMethod( oBrw[3], "ADDCOL" )
      msginfo("Yes")
   else
      msginfo("Nope")
   endif
 
Marc Venken
Using: FWH 23.08 with Harbour
User avatar
Jimmy
Posts: 1737
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: how can i check if Method/Property exist ?

Post by Jimmy »

hi Marc,

thx for Info, i will try it
greeting,
Jimmy
Post Reply