how can i check if Method/Property exist ?

how can i check if Method/Property exist ?

Postby Jimmy » Wed Feb 22, 2023 8:47 am

hi,

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

i want to check if Method/Property exist
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

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

Postby AntoninoP » Wed Feb 22, 2023 10:07 am

there is the harbour one: __objHasMethod
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy

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

Postby Jimmy » 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
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

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

Postby Marc Venken » Fri Feb 24, 2023 8:55 pm

Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1434
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

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

Postby Marc Venken » Fri Feb 24, 2023 9:19 pm

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
 
Marc Venken
Using: FWH 23.04 with Harbour
User avatar
Marc Venken
 
Posts: 1434
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

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

Postby Jimmy » Sat Feb 25, 2023 6:18 am

hi Marc,

thx for Info, i will try it
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1732
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 85 guests