Page 1 of 1

how can i check if Method/Property exist ?

PostPosted: Wed Feb 22, 2023 8:47 am
by Jimmy
hi,

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

i want to check if Method/Property exist

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

PostPosted: Wed Feb 22, 2023 10:07 am
by AntoninoP
there is the harbour one: __objHasMethod

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

PostPosted: Wed Feb 22, 2023 10:41 pm
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 :?:

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

PostPosted: Fri Feb 24, 2023 8:55 pm
by Marc Venken

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

PostPosted: Fri Feb 24, 2023 9:19 pm
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 view
  if __ObjHasMethod( oBrw[3], "ADDCOL" )
      msginfo("Yes")
   else
      msginfo("Nope")
   endif
 

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

PostPosted: Sat Feb 25, 2023 6:18 am
by Jimmy
hi Marc,

thx for Info, i will try it