The Caption property specifies the caption for a window field.
field.Caption [= string]
• field – A window field object.
• string – The caption for the field.
The following list explains the caption for each field type:
Field type |
Caption |
---|---|
String, composite, currency, integer, long integer, date, time, text, list box, drop-down list, multi-select list, combo box |
The text that’s linked to the field. |
Check box |
The text that’s linked to the check box group. If the check box does not appear in a check box group, or if there’s no caption for the check box group, the caption is the text for the individual check box. |
Push button, button drop list, visual switch |
The text appearing on the button face or switch. The Caption property has no effect on a button or visual switch with a picture. |
Radio button |
The text that’s linked to the radio button group. If there’s no caption for the radio button group, the caption is the prompt for the individual radio button. |
If you make a caption longer than the existing caption, keep in mind that you may need to resize or rearrange fields to view the entire caption.