>OK, I know how to return a single value from a form, but is there a way to return more than one value from a form?
>
>In a function, I would pass variables by reference, and have the function modify the value. If I do the same in a form, parameters get destroyed as soon as Init() finishes - and I want to return a value based on user input. I suppose that if I copy the parameter to a form property, changing this later on won't change the original variable.
>
>I guess I can return a parameter object; however, I solved this particular problem by returning a single string, with the desired values concatenated, with a convenient separator.
>
>Although I already solved this particular problem, I was wondering whether I was missing something.
See
Re: Optional number of parameters and protected procedure Thread #
1182425 Message #
1182490You may read the whole thread for some other interesting ideas.
BTW, I do now use Tore's parameter object everytime. I need to check, if I gave him a proper credit in my code.
UPDATE. Yes, I did.
If it's not broken, fix it until it is.
My Blog