Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pemstatus vs amembers
Message
From
30/11/2010 03:24:46
 
 
To
30/11/2010 03:20:57
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01491017
Message ID:
01491034
Views:
62
Agnes,

I usually use Vartype instead of Type. However, Vartype has one big disadvantage, it errors on nonexistent objects. Try for instance ?Vartype(_screen.aa.a) .

>Hi Thomas,
>
>if yo go for the TYPE instead of PEMSTAT why not VARTYPE?
>
>Agnes
>
>>>I have a program that checks to see if a property already exists on an object before adding it, which would be the better way to determine if the property already exists?
>>
>>You can call addproperty even if the property does exist, if you only have the need to set.
>>The operation is even faster ;-)
>>If you are checking before a get, Type() might help you more than !Pemstat
>>
>>>
>>>    IF PEMSTATUS( m.loMyObject, [cNewProperty], 5)
>>>      ADDPROPERTY( m.loMyObject, [cNewProperty], [Test Information])
>>>    ENDIF
>>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform