Dynamic naming of objects and variables

grif999

Grif
Local time
Today, 13:05
Joined
Jun 30, 2006
Messages
2
Is it possible to dynamically name an object, field, variable, etc., to be equal to the value of a variable?
For example, if I have a variable x, and I want to create a scripting dictionary whose name is equal to the value of x, can I do that? If so, how?
Thanks.
 
Renaming objects requires opening them in design view and then changing them. You would break anything that depended on the name that was changed.

What are you trying to do?
 
I am trying to create a scripting dictionary, preferably, (or maybe an array) with a name based on the current value of a variable during processing.
For instance, say the value of variable strCity is "Memphis". I would like to create the dictionary with the name "Memphis", to list all of the attributes associated with Memphis.
 

Users who are viewing this thread

Back
Top Bottom