Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if a property is on a object
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01335595
Message ID:
01335608
Views:
16
>It's a wrong approach. See my original reply for correct answer.
>
>You can use TYPE("myObject.myObject") = 'O' and insull(myObjec.myObject,'')<>'' && I forgot how do you check for NULL in VFP.
>
>If you don't have your property defined VARTYPE will give you an error. That's why PEMSTATUS() function was introduced.
>
>>Thanks, that works great. Don't know why my brain is having a hard time with vartype these days. :)
>>>
>>>IF VARTYPE("myobject.myproperty") = "O"
>>>
>>>
>>>>
>>>>I need to check a object that started out as "empty" object for a specific property. Is there a way to do this without getting an error?
>>>>
>>>>TIA,
>>>>Beth


Just ISNULL() nothing else :-)
IF ISNULL(some value)
    ...
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform