I'd like to access an object whose reference is based on contents of one or more strings. To help explain what I mean I'll give you an example.
I have a string variable called 'ObjectName', that will contain the name of the object that I want to access, and a variable called 'PropertyName, that will contain the name of the property within an object. What I'd like to do is basically combine the contents of those two strings to form a reference/pointer to the actual object property, as per below:
Dim ObjectName as String
Dim PropertyName1 as String
Dim PropertyName2 as String
pointer?(ObjectName & PropertyName1) = "12345"
pointer?(ObjectName & PropertyName2) = "ABC12345"
set pointer?(ObjectName & PropertyName1) = xxxxxx
set pointer?(ObjectName & PropertyName2) = xxxxxx
The above syntax examples are incorrect but serve the purpose of explaining (I hope) what I'm trying to achieve.
Can it be done?