Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning values from a form
Message
 
 
To
08/02/2007 17:10:49
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01193905
Message ID:
01193908
Views:
11
>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 #1182490

You 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
Previous
Reply
Map
View

Click here to load this message in the networking platform