Currently I am trying to implement object level security in
Visual Basic.
I am storing the object names in which I am trying enable or disable based
on an associated security level. When performing a query on a name in a DB
I receive back a string. I would like to take that string and perform
property settings on it as if it was the object.
For Example.
'minus the db stuff
dim sVal as string
sVal = "command1" 'an example object
sVal.Enabled = False ' not a valid statement but gives the essence of what I
am trying to do.
I have also tried using an object of type varient but that does not work
either. Once it receives the string from the database it emulates a string.
Additionally I have tried defining an object of type Object and that does
not work either it wont accept a string as its value.
So any ideas would be greatly appreciated.