General information
Category:
Coding, syntax & commands
>>I need to pass some parameters to a form that I call using the
>>frmForm.Show method. How caould I pass in and get parameters
>>to/from a form? Pls advise, thanks.
>
>Create two properties for the form that will be called. One you use as the input value and the other for the output value. The input value you set before showing the form and read the output value after the form closes. The output value is set when form processing is finished:
>
>frmCalled.InputValue = "Something"
>frmCalled.Show
>strResult = frmCalled.OutputValue
>
>Kind of a workaround, but AFAIK VB form's can't take or return values like a function.
Could you guide me a little more on how to creat Properties "InputValue"
and "OutputValue"? Should the above mentioned syntax be in one of the
Click button to start a form? Thanks alot.
Previous
Next
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