Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning an array from modal form
Message
From
12/12/2003 10:51:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00858597
Message ID:
00858604
Views:
12
>Hi,
>
>I want to return an array from a modal form:
>
>DO FORM frmTest TO laArray
>
>I create an array in the form 'frmTest' but can't return the array only a value.
>
>Thanks

Roy,
There are multiple (at least 6 I think) ways to do that.
-One simple way would be to return an object with an array property
-Declare array before form calling
-Do not return anything (this is my favorite)
etc.

Do not return anything approach :
local loForm
local array arrRet[1]
do form myForm name loForm linked
acopy(loForm.arrValues, arrRet)
loForm.release
release loForm

*In myForm where you release the for do not release but hide
* Retrun Commandbutton.click
this.arrValues[...] = ....
this.Hide()
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform