Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning multiple values from a form
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00402652
Message ID:
00402733
Vues:
10
>>Hello Robin,
>>
>>If I'm reading you correctly, I get a syntax error when I try to use a comma delimited list after a RETURN, i.e. RETURN var1, var2, var3 gives me a syntax error. Is this what you meant?
>
>Yes you will get a syntax error with that.
>
>You can only return ONE value from a form. What I believe Robin was suggesting was to pass back one character string delimited by a comma or semicolon and parse it.
>
>Nigel's suggestion of creating a custom object with one property per return value was much better in my opinion because you can pass back values of differing data types. With Robin's suggestion, you would have to also embed the data type in the string and convert it. Of course, if you only need character data, this works great.

You can also populate an array property of the application object [oApp].
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform