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 10:18:17
 
 
To
18/02/2004 10:05:00
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00878231
Message ID:
00878305
Views:
14
One alternative is to pass an object reference to the form you are calling, then use this object reference to set properties or launch methods in the calling form.

For example:

Calling code:
Do form NonModelForm with thisform
Init method of form that is being called:
parameters oCallingForm
thisform.oCallingForm = oCallingForm  && place object reference in a form property
Now anywhere inside of your form you can reference the calling form easily...

Example:
thisform.oCallingForm.UpdateForm()
Of course you can use this to pass an array or any other data type to a method in the calling form.

I've found this design very flexible in updating forms and passing complex data back and forth without parameters or global variables.

Greg


>if you want to return a value from your form you have to do modal your form even you don't return array. So you can declare your array before form and use it in form and after form without any describtion.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform