Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I return two or more values?
Message
From
05/03/1997 01:39:25
 
 
To
04/03/1997 08:54:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00022797
Message ID:
00022898
Views:
46
>Hello
>
>I have a simple problem (I think). I want to return two value from an object.
>
>I created an array myArray[2] and stored my two values in the array and after that I did RETURN myArray.
>
>In the calling method I created an array myAnswer[2] and used the following code
>myAnswer = oMyObject.test()
>
>It didn't worked and the manual just describe how to return one value (I haven't found anything else).


You can concatinate the two values and seperate them by a hardly used character for example "@", then use the AT() function to seperate the two values.
Hope this will help.
System Analyst
Nabil B. Ghrayyeb
nabilg@hotmail.com
Previous
Reply
Map
View

Click here to load this message in the networking platform