General information
Category:
Coding, syntax & commands
Title:
Returning an array from a form
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only