Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pass property by reference?
Message
 
À
31/01/2005 16:50:59
Joel Leach
Memorial Business Systems, Inc.
Tennessie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Database:
Visual FoxPro
Divers
Thread ID:
00982472
Message ID:
00982475
Vues:
18
This message has been marked as a message which has helped to the initial question of the thread.
>Is there are way to pass a form property to a function/method by reference? I have an array property that I need to pass to a method on a different class. Using @Thisform.aMyArray fails, so I'm currently copying the array to another variable before passing it to the method, but if there's a better way, I'd prefer to use it.
>
>Thanks.

Just pass thisform as a Parameter, & then use
parameter_form.aMyArray...

Soemething like:
SomeFunction(thisform)


FUNCTION SomeFunction(oForm)

oForm.aMyArray[15] = "blabla..."

RETURN ""
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform