Information générale
Catégorie:
Codage, syntaxe et commandes
>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.
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