How to know if a property exist ?

How to know if a property exist ?

Postby vilian » Wed Apr 04, 2018 12:09 pm

Hi guys,

I have an object oTest that sometimes has a property oTest:Localizacao and sometimes does not have it. Do you know how to verify IF "localizacao" exist in oTest ?
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: How to know if a property exist ?

Postby cnavarro » Wed Apr 04, 2018 12:33 pm

Try with

__objHasMethod( oObj, cMethod )
__objHasData( oObj, cData )

Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: How to know if a property exist ?

Postby vilian » Wed Apr 04, 2018 1:21 pm

Thank you ;)
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 975
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 95 guests