We can pass info to and retrieve info from a form like this:
DO FORM WITH arg1,arg2 TO result
which is similar to calling a function:
result = FORM(arg1,arg2)
When I am developing a form, I often need to change the number
of input and output arguments, which means I need to constantly
adjust the form calling interface.
By using a parameter object as an input/output mechanism simplifies
it like below:
loParam = createobject('empty')
do form with loParam
Also the use of parameter object makes it flexible in when and where
to assign the output value, i.e. not restricted to RETURNing a single
entity in the UNLOAD event of the form.
Uploaded on 11th April 2007, running time 4 minutes.