ChrisBerry
asked on
Addressing controls who's name is in a variable
How can I address the properties of a control whose name I have in a variable?
I have tried something like this:-
TControl(ControlName).Prop erty := xxxx;
While compiles happily I get an address error on run. I realsie I am apparently typecasting the ControlName variable to TControl and this is probably the cause of the error but I can't see the way to solve the problem.
Thanks
Chris
I have tried something like this:-
TControl(ControlName).Prop
While compiles happily I get an address error on run. I realsie I am apparently typecasting the ControlName variable to TControl and this is probably the cause of the error but I can't see the way to solve the problem.
Thanks
Chris
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER