Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I pass & return an array to form
Message
From
18/02/2004 07:32:08
 
 
To
18/02/2004 07:16:31
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00878231
Message ID:
00878233
Views:
22
>how do I pass & retrun an array to form
>Rajesh
local array laMyArray[10]
laMyArray = "hello"

do form MyForm with laMyArray to laMyArray

for ln = 1 to alen( laMyArray, 1 )
   ? laMyArray[ ln ]
next
In the modal form's Init:
lparameter taMyArray
local ln

for ln = 1 to alen( taMyArray, 1 )
   activate screen
   ? taMyArray[ ln ]
next

thisform.aMyArray = taMyArray
In the modal form's Unload:
return thisform.aMyArray
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Reply
Map
View

Click here to load this message in the networking platform