Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Parameters between forms
Message
De
28/06/2000 10:15:55
 
 
À
27/06/2000 21:51:19
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00385503
Message ID:
00385747
Vues:
14
>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
Fil
Voir

Click here to load this message in the networking platform