Exactly. The following VFP8 code confirms that.
oObj = CREATEOBJECT("Empty")
? ADDPROPERTY(oObj, "cMyProp", "")
? TYPE([ADDPROPERTY(oObj, "cMyProp", "")])
>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--