Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type function is not smart enough
Message
 
 
To
28/10/2002 08:31:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00714883
Message ID:
00715993
Views:
30
Exactly. The following VFP8 code confirms that.
oObj = CREATEOBJECT("Empty")
? ADDPROPERTY(oObj, "cMyProp", "")   && Returns .T.
? TYPE([ADDPROPERTY(oObj, "cMyProp", "")])   && Returns 'L'
>Vlad,
>
>Strictly speaking, 'AddProperty' is an object method, not a VFP function (at least in VFP's terminology). So I think the difference is in that. Is there a true VFP built-in 'function' where Type() does not run the function to get the return type?
>
>I don't think you can compare a UDF with an object method. They're really two different animals.
>
>Alan
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform