FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour how can i check if Method/Property exist ?
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM

how can i check if Method/Property exist ?

Posted: Wed Feb 22, 2023 08:47 AM
hi,

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

i want to check if Method/Property exist
greeting,

Jimmy
Posts: 375
Joined: Tue Feb 10, 2015 09:48 AM

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

Posted: Wed Feb 22, 2023 10:07 AM
there is the harbour one: __objHasMethod
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM

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

Posted: Wed Feb 22, 2023 10:41 PM
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
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM

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

Posted: Fri Feb 24, 2023 08:55 PM
Marc Venken

Using: FWH 23.08 with Harbour
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM

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

Posted: Fri Feb 24, 2023 09:19 PM
Jimmy, It works

If I put this code, It works without any rest code, so it is included
Code (fw): Select all Collapse
   if __ObjHasMethod( oBrw[3], "ADDCOL" )
      msginfo("Yes")
   else
      msginfo("Nope")
   endif
Marc Venken

Using: FWH 23.08 with Harbour
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM

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

Posted: Sat Feb 25, 2023 06:18 AM

hi Marc,

thx for Info, i will try it

greeting,

Jimmy

Continue the discussion