Accessing Properties

  • Thread starter Thread starter Prateek
  • Start date Start date
P

Prateek

Hi,

How can I call a Property through a variable?

Suppose I have an object which exposes a Property called "Checkboxes".
I have the word "Checkboxes" stored in a string variable. I want to access the Checkboxes property of the object using this string variable.

Also, I do not want to do a Case or If check here i.e.
If StringVar = "Checkboxes" Then Object.Checkboxes = Something

Can anybody help?

-Prateek
 
* "Prateek said:
Suppose I have an object which exposes a Property called "Checkboxes".

I have the word "Checkboxes" stored in a string variable. I want to access the Checkboxes property of the object using this
string variable.

Have a look at the 'CallByName' function.
 
Thanks Herfried!

* "Prateek said:
Suppose I have an object which exposes a Property called "Checkboxes".

I have the word "Checkboxes" stored in a string variable. I want to access
the Checkboxes property of the object using this
string variable.

Have a look at the 'CallByName' function.
 
Back
Top