Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing form property by reference
Message
De
10/07/1998 16:43:36
 
 
À
10/07/1998 16:35:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00116288
Message ID:
00116306
Vues:
20
>In the calling form:
>
>DO FORM Foo WITH THISFORM TO MyArray
>
>In the Unload() event:
>
>RETURN THISFORM.MyArray
>
>>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.

What I need to do is update values in an existing array. the way I am trying to do this is :

DIME aDates(2)
DO FORM GetDates to aDates

then in the GetDates form there is an array property (aSelDates) to contain the values
in the unload event of GetDates I have:

RETURN this.aSelDates

what happens is that the value of aSelDates(1) is returned to both elements of aDates.
Mark Johns
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform