General information
Category:
Coding, syntax & commands
>Hello,
>
> Is it possible to pass parameters to a form in VB 6.0? If so how is it done?
>
>Thanks
>
>Jim
There are several approaches to this. One is to declare custom properties (Property Let/Get) of your form that you would set values before showing the form. Another is using public module variables, which are not the best way because it's available to any piece of code in your project. And yet another way is to define a public Sub in your form that receives the parameters, stores them in form level variables and then shows the form.
Any one of these should work, take your pick.
HTH
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