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