Information générale
Catégorie:
Codage, syntaxe et commandes
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.
>A bit OTT unless you're going to use that property everywhere. For passing values back from a form, you wouldn't normally want to use the oApp - only essential, generic global properties go in there. You'd normally want to dump the returned object once you've extracted your required values from it anyway.
>
>>
>>You can also populate an array property of the application object [oApp].
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement