Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

is it possible?

Posted on 2002-07-15
2
Medium Priority
?
157 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
2 Comments
 
LVL 10

Accepted Solution

by:
GoodJun earned 200 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

Industry Leaders: 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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

886 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