Label - cComActiveXControl
Sets the text for a label or heading for an entry control object
Type: Property
Access: Read/Write
Data Type: String
Parameters: None
Syntax
Property String Label
| Access Type | Syntax |
|---|---|
| Read Access: | Get Label to StringVariable |
| Write Access: | Set Label to StringVariable/Value |
Description
The Label property sets the text for a label or heading for an entry control object (form, edit or list). In most classes, just setting this property is all that is required for the class to present the label in whatever particular way each class does this. In data-aware classes, the value of this property is overridden by label values in the DDO when auto_label_state has been set true.
Object F1 is a Form
Set Size to 13 100
Set location to 10 70
Set label to "First Name:"
End_object
To display an ampersand (&) in a label, use two ampersand characters.
Set Label to 'Save && Display'
Many visible classes have a separate object of the TextBox class that displays the object's label, the handle to which can be obtained via Label_Object.