Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return values
Message
De
06/03/2001 17:09:25
 
 
À
06/03/2001 11:38:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00482246
Message ID:
00482484
Vues:
9
>>>Hi All,
>>>
>>>Is it possible to return multiple values from a procedure. To get 1 value I do:
>>>
>>>myvalue = myprocedure(myparams)
>>>
>>>Is there a way to get more that 1 return value? If so, how?
>>>
>>>TIA
>>>Mike
>>
>>Mike,
>>No you can't. Another suggestion would be to return a singular parameter object with as many properties as you needed to return the values you needed.
>
>Hi larry,
>
>This is along the lines of what James had said. I've gone with that.
>
>Thanks for responding
>Mike

Actually, what James proposed is nothing like a parameter object. Take a look at Fred Taylor's FAQ http://www.levelextreme.com/wconnect/wc.dll?UniversalThread~?2,33,Forum=5,29,517 for an idea of its capabilities.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform