Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pass param by reference or private variable?
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01671293
Message ID:
01671299
Views:
60
>>Return an object based on empty with properties storing return values. This way you can return as many strings or not strings as you want
>
>I just did a little test. And it appears that creating an empty object is fairly simple
>
>oEmpty = CREATEOBJECT("empty")
>ADDPROPERTY( oEmpty, "return_success",.T.)
>ADDPROPERTY( oEmpty, "string1","abc")
>ADDPROPERTY( oEmpty, "string2","123")
>oEmpty.return_success = .F.
>RETURN 
>
>
...
RETURN oEmpty
Yep and it'll save a lot of headache in the future
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform