Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Array by Reference to a Form vfp6
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00659071
Message ID:
00659395
Vues:
20
>You can return values this way from the Init only because parameters as
> scoped to the Init. You've a couple of options here:
>1. Create parameter object with an array property and pass it instead of array.

But is it still lost, after the Init? From my tests, the reference to the array property is lost after Init.

>2. Make returnarray a property of the form and instead of releasing form just hide it, copy that array to your local array and them release form.

How would I access that hidden form (AddSample) from the calling object? Just issue the return function from within AddSample, then within the calling object AddSample.returnarray to access that property? and then just do AddSample.release() ?

This 2nd option seems like the only way to do it...

thanks for your help, thus far, it has been invaluable.
matt
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform