Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning arrays from a form
Message
From
23/05/2001 09:04:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/05/2001 08:08:44
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00510264
Message ID:
00510287
Views:
12
>Hi everybody,
>
>I'm making a form which accepts an array as a parameter.In this form i'm working with this array and i would like to returnthis array to the calling program. Is there a way t do this without declaring the array public? I'm trying to return the array just as i pass i to the form.
>
>Any help and/or sample-code will help.
>
>T.I.A. Erwin

Erwin,
Desired way is to pass object references.
oMyTempObject = createobject('relation')
oMyTempObject.AddProperty('aMyArray[1]')
do form myModal with oMyTempObject
with oMyTempObject
*do whatever with .aMyArray
endwith
However there is another way too which simply instantiates the array before modal form call :
dimension aMyArray[1]
do form myModal
*do whatever with aMyArray
This would work too if you don't declare aMyArray as local. It's not public array and scoped to caller routine.
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