Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Perform action on Named Control

Posted on 2007-12-06
3
Medium Priority
?
254 Views
Last Modified: 2012-05-05
It occurred to me that in Access 2000 you can essentially modify parts of a program via code, such as changing the querydef object on a query to alter its actions. Is there a way in VB.NET 1.1 that you can create a routine that would act on a variable name ?

Something like this:

var = "x_AR_GR1_PS07.BackColor = System.Drawing.Color.Yellow"

execute ? var
0
Comment
Question by:shelbyinfotech
[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
3 Comments
 
LVL 3

Accepted Solution

by:
stephenbarrow earned 2000 total points
ID: 20425635
Instead of
var = "x_AR_GR1_PS07.BackColor = System.Drawing.Color.Yellow"
execute ? var

you could use something like
var = System.Drawing.Color.Yellow
x_AR_GR1_PS07.BackColor = var

any reason you can't use this?
0
 
LVL 1

Expert Comment

by:Vee_Mod
ID: 20620286
Force accepted.
Vee_Mod
Community Support Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

604 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