Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call a form and pass it parameters
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00569379
Message ID:
00569795
Views:
26
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
Map
View

Click here to load this message in the networking platform