954,529 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Object backcolour change from an array

Not entirely sure if this is even possible as have yet to find a solution anywhere for this but here goes.

The form currently looks at a database and pulls a text name from location:

DS.Tables("Location").Rows(0).Item(4)


The resultant text entry from this location, for example: "loc_fvh_Flowers", will then be compared against an array of every location possible in the program.

Is it possible to, when a match is found, the use the "loc_fvh_Flowers" as a reference and effectively add

.BackColor = Color.Crimson


Onto it to make:

loc_fvh_Flowers.BackColor = Color.Crimson


Which is the full code to change the object colour to crimson.

The issue being in being able to get the value from the array of the location reference, concatenate it with the end of the command and then execute the command.

All help appreciated and many thanks in advance,
Mike

MikeyIsMe
Junior Poster
142 posts since Nov 2010
Reputation Points: 32
Solved Threads: 15
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: