Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement