Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning multiple values from a form
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00402652
Message ID:
00402733
Views:
9
>>Hello Robin,
>>
>>If I'm reading you correctly, I get a syntax error when I try to use a comma delimited list after a RETURN, i.e. RETURN var1, var2, var3 gives me a syntax error. Is this what you meant?
>
>Yes you will get a syntax error with that.
>
>You can only return ONE value from a form. What I believe Robin was suggesting was to pass back one character string delimited by a comma or semicolon and parse it.
>
>Nigel's suggestion of creating a custom object with one property per return value was much better in my opinion because you can pass back values of differing data types. With Robin's suggestion, you would have to also embed the data type in the string and convert it. Of course, if you only need character data, this works great.

You can also populate an array property of the application object [oApp].
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform