Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I return two or more values?
Message
De
05/03/1997 01:39:25
 
 
À
04/03/1997 08:54:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00022797
Message ID:
00022898
Vues:
42
>Hello
>
>I have a simple problem (I think). I want to return two value from an object.
>
>I created an array myArray[2] and stored my two values in the array and after that I did RETURN myArray.
>
>In the calling method I created an array myAnswer[2] and used the following code
>myAnswer = oMyObject.test()
>
>It didn't worked and the manual just describe how to return one value (I haven't found anything else).


You can concatinate the two values and seperate them by a hardly used character for example "@", then use the AT() function to seperate the two values.
Hope this will help.
System Analyst
Nabil B. Ghrayyeb
nabilg@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform