Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning an array from a form
Message
De
09/05/2000 16:13:28
 
 
À
09/05/2000 16:05:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00367796
Message ID:
00367810
Vues:
18
>I'm not real sure this will help. If I were you I would set up the array in the calling program and then pass the array to the form. In the INIT of the form store the array to a local property just to check against. Then do what ever you want to the array. BTW I believe it is not required to set UFPARMS - just use the '@'.

It won't, since the array is passed into the Init, and would go out-of-scope and become unavailable to subsequent methods.

The best approach here IMO is to create a parameter object that holds the member array you want to pass; pass the object reference to the Form's Init. Save the passed object reference to a custom member property of the form, and then refer to the array via the saved object reference. You can change the contents and dimensioning of the object through the object reference, and on termination, the original object passed in would hold the modified array - in fact, at all times, the origianl object and the member property copy of the object reference point to the same thing.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform