Information générale
Catégorie:
Codage, syntaxe et commandes
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement