Checking if Component has a Caption Property
Posted on 1997-05-27
I have a program that accesses varying components via the
TWinControl base class. TWinControl does not have a caption
property. I'd like to be able to set the caption property
if one exists for the component.
1) How do I check if a caption property exists for any control
that can be selected?
2) What base class can I use that will cover all visible
components, yet have a caption property?
3) If I have to use a try..except block...what exception will
I have to trap?