Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning an array from a form
Message
From
14/04/2005 13:33:29
Richard Meltzer
Great Lakes Behavioral Research Institut
Cranberry Township, Pennsylvania, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Returning an array from a form
Environment versions
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01004788
Message ID:
01004788
Views:
91
I'm new to VFP7 and am trying to return an array from a form and have not been able to do so. Can anyone help -- THANKS

Example code:
From a button click event on FORM1

DIMENSION ArrayOne[2]
DO FORM (FormTwo) TO ArrayOne
NESSAGEBOX('Contents of ArrayOne[1] = '+ArrayOne[1],0,'Test of returning array')


From the Unload Event on FORM2

DIMESION ArrayTwo[2]
STORE 'Test1' TO ArrayTwo[1]
STORE 'Test2' TP ArrayTwo[2]
RETURN @ArrayTwo

ArrayTwo gets created but ArrayOne never gets populated
Next
Reply
Map
View

Click here to load this message in the networking platform