Solved

is it possible?

Posted on 2002-07-15
2
150 Views
Last Modified: 2010-05-03
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
Comment
Question by:nfuids
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
GoodJun earned 50 total points
ID: 7155567
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
 
LVL 2

Expert Comment

by:higijj
ID: 7155569
humm.. ok, well, I guess I'll have to find another way around!

thanks anyway
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question