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:
00569900
Views:
26
What you want is similar to data binding and it cannot be done on variables. You may define a disconnected-recordset and bind your text box to this recordset. Although it is possible, I don't think it is a great idea.

>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
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform