Link to home
Start Free TrialLog in
Avatar of Lies
Lies

asked on

passing a string as a component name

Hello,

I have the following problem:

I read the name of the component and the corresponding value from a textfile eg: "txtName"  and "Lies"

How can I pass the string so my program knows that it is a textbox. My intention is : txtName.text = "Lies"

I hope you understand my question.

thx
Lies
ASKER CERTIFIED SOLUTION
Avatar of AzraSound
AzraSound
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of AdsB
AdsB

or perhaps even more easily:-

Me.Controls("txtName").Text = "Lies"
Avatar of DanRollins
Hi Lies,
It appears that you have forgotten to close this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept AzraSound's comment(s) as an answer.

Lies, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept THIS comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer