Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More array passing...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
More array passing...
Miscellaneous
Thread ID:
00276579
Message ID:
00276579
Views:
60
I've been looking through the UT for info on array passing (between forms) and haven't been able to find what I'm looking for.

I have been able to succesfully pass an array to a form, (DO FORM frmName WITH aArrayToBePassed).

However, I cannot return an array from a called form. I've tried:

DIMENSION aReturnArray[2]
DO FORM frmCalledForm TO aReturnArray

Then in the called form, in the Unload() method:

RETURN aArray


Using the debugger, I know the form being called has correctly set the values of the array being returned. But the only value that makes it back to the original form is the first value of the return array.

I don't necessarily need to pass an array, but I do need to return more than one value from a form. Since it seems you can only specify one value in the TO clause when calling a form, I assumed an array would do the job.

Can somebody please explain how to do this?

Thanks!
Next
Reply
Map
View

Click here to load this message in the networking platform