Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to call a form and pass it parameters
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00569379
Message ID:
00569795
Vues:
31
Erik,

>Dim x As Textbox
>Set x = frmSomething.Text1

If I read this correctly, I am simply making another object reference to the text box.

What I want is something like:

function foo(strName as string)

frmSomething.Text1.variableReference = "strName"

end function

Now, when I enter anything in the text1 textbox, the string variable gets updated with the contents of the textbox's .text property.

Why do I want this? Well, lets say that I am passed a string value that I want to display and allow a user to edit. If I can't do this, I need to assign the value to the textbox.text property before I display, then save it back to the parameter when the user clicks save.

Thanks,

Fletcher
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform