Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 160
  • Last Modified:

is it possible?

Would it be possible to store a part of the name of a control into a variable and do like:

myVar = "FirstName"

txt & "myVar".text = "blablabla"


instead of doing
txtFirstname = "blablabla"

?!?
0
nfuids
Asked:
nfuids
1 Solution
 
GoodJunCommented:
NO.

You can use CallByName to call a method of an object by passing the string representation of the method. But, to
represent a object use the string representation is not possible (or at least not the normal way)
0
 
higijjCommented:
humm.. ok, well, I guess I'll have to find another way around!

thanks anyway
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now