Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do i return a array from a form or a function ?
Message
De
11/10/1999 14:17:02
 
 
À
11/10/1999 11:25:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00274947
Message ID:
00275060
Vues:
17
Hi Franck.

>> i want to return a array with the command RETURN but it's impossible.
How can i do this ? <<

Create a class called xParameters. Add a custom arrary property called aParameters[1] and in the init of the class, put:

LPARAMETERS taArray
ACOPY(taArray, This.aParameters)

Then, whenever you want to return an array, provided your array (laArray) is populated, you can do it like this:

RETURN CREATEOBJECT( 'xParameters', @laArray )


The calling routine can then acces the aParamters property of the returned object to get the elements of the returned array.

Marcia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform