FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How to know if a property exist ?
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
How to know if a property exist ?
Posted: 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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: How to know if a property exist ?
Posted: 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
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: How to know if a property exist ?
Posted: Wed Apr 04, 2018 01:21 PM

Thank you ;)

Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil

Continue the discussion