Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
May I return an array in calling procedure from Form.Unl
Message
De
09/01/2000 12:56:35
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00315113
Message ID:
00315164
Vues:
30
>Hi everyone,
>
>I'm just thinking, is it possible to return an array into top-level procedure from the form? What are the possible scenarios?
>
>Say, External array in form.Init method as a parameter?
>Or declare this array in calling procedure and return in Form.Unload?
>
>Or we can not return an array?

A modal form can return a simple variable; arrays don't qualify. You can pass in an array by reference and modify it; the results would be visible on exit, but nothing would be explicitly returned.

By far the best approach to the problem would be to pass back an object that contained a member array; you can return an object (it's a single item) and then examine the content. You can use this technique any time you need to pass back arrays or multiple values.
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