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:
00402785
Vues:
10
I couldn't get this working without having a To clause. Also, if you pass a string, the string is stored in the property, not a reference. I'm intrigued now...

>May sound old-fashioned, but you can always pass parameters into a form by reference in a bit of a quirky way:
>
>given that ReturnVal1 and ReturnVal2 are to be given some value within the form's logic:
>
>Do form myForm with "ReturnVal1", "ReturnVal2"
>
>In the form's Init:
>
>lParam cMVName1, cMVName2
>thisform.RetVal1_MVName=cMVName1
>thisform.RetVal2_MVName=cMVName2
>
>Anywhere in the form's logic:
>
>Store AnyVal1 to (thisform.RetVal1_MVName)
>Store AnyVal2 to (thisform.RetVal2_MVName)
>
>Kludgy but it works.
>
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform