Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with Functions
Message
From
25/09/2000 17:00:39
 
 
To
25/09/2000 16:55:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00420658
Message ID:
00420662
Views:
25
>Hi. I have a form that contains a command button. The command button contains some code which calls a function with two parameters. One of the parameters is a numeric field and the other is a date. I am drawing a blank on how to call this function and pass the parameters, and the return the value of the two parameters back to the main code. I was going to set up the function as a method on the form, but I can't figure out how to pass in the values and return different values for the same parameters. I know how to pass one, I just don't know how to pass two.
>
>Can someone help me?
>
>Thanks in Advance
>
>Sandi Cassidy

The way to return two values is to pass them in by reference. e.g.
MyFunction(@parm1, @parm2)

However, I suggest you make the function a form method and the parameters properties on the form instead.
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform