General information
Category:
Forms & Form designer
>>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.
Thanks!
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only