Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning an array from a form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00367796
Message ID:
00367823
Vues:
20
>Try creating a modal form, with an array property, then, do form with myarray to myarray. You must have lparameters set in init to receive the array then set the form array property to the value of the parameter then in unload, return the form array property to myarray.

You have a problem - the array you pass initially is not going to persist in the modal form beyond it's Init, and the RETURN in the Unload of the modal form can only pass back a single object, not an array. This is why I recommended the use of a parameter object - it allows you to get around the persistance problem where you pass an array in at the Init, and allows passing of an object with arrays (or even multiple distinct properties) on termination from the Unload event. In this instance, he would not have to pass anything back; hew passes in a poarameter object on Init, saves the object reference in a Form property, updates the member array as needed, and on termination, the original object whose ref was passed in now contains the updated data. In fact, this can allow you to run the form non-modal; the object reference is visible to the called form for the form's lifetime.
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