The Field_GetCaption() function retrieves the text caption for the specified field, such as a push button or button drop list. If the field doesn’t have a caption, the prompt linked to the field is returned.
Field_GetCaption(field_name)
• field_name – The name of a window field.
A string containing the caption for the field.