Control Property - What type am I ?
Posted: Fri Mar 06, 2009 7:29 am
I have a generic routine which scrolls through all the controls on a card. Is there a control property I can query which will tell the routine what kind of control the "n"th control actually is ie. is it a field, is it a checkbox, is it a button?
The different control types are treated differently by the routine so it must be able to evaluate the control type. The "style" property is close but not quite and I have been unable to discern a "type" property.
I could of course add a custom property to each control but this is not particularly elegant.
Alex
The different control types are treated differently by the routine so it must be able to evaluate the control type. The "style" property is close but not quite and I have been unable to discern a "type" property.
I could of course add a custom property to each control but this is not particularly elegant.
Alex