Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return values
Message
De
07/03/2001 08:00:54
 
 
À
06/03/2001 17:09:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00482246
Message ID:
00482632
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.

Hi Al,

Thanks for this tip. I've noted where to find this in case I ever need it. Which could happen. In this current situation James's idea was exactly what I needed.

Thanks again
Mike
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform