Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Type function is not smart enough
Message
From
28/10/2002 08:47:13
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00714883
Message ID:
00715998
Views:
33
Ok, then, but that still leaves open the question of whether or not UDF's are evalutated by Type() in VFP8.

Do I take it from your answer that even in VFP8 (I don't have it), Type() still refuses to return a value for UDF's?

Alan

>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
>>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform