Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing form property by reference
Message
 
À
10/07/1998 16:33:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00116288
Message ID:
00116379
Vues:
18
>On the other side of this question is: how do you return a property of a form that is an array? I've tried a lot of combinations and can't seem to get this.

Mark,

Again you cannot return an array, however you can use a parameter object that has an array property in it. For example lets say I have a class named Parms that has a property named aArray in it, I can;
loObj = CreateObject("Parms")
DIMENSION loObj.aArray(2)
loObj.aArray(1) = "ABC"
loObj.aArray(2) = "DEF"
DO FORM Whatever WITH loObj
In the Init of the form I receive LPARAMETERS poParms and store it to a property of the form. I can manipulate the properties of that parm object in the form and when the form releases the parm object will contain the values that the form put init.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform