General information
Category:
Coding, syntax & commands
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only