Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning arrays from a form
Message
De
23/05/2001 09:04:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
23/05/2001 08:08:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00510264
Message ID:
00510287
Vues:
13
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform