Caption is the most frequently used property of a Text orientated control as it allows setting and reading of the content (all the text) that is displayed by the control. This property can be bound to a database table field as to automatically display its contents and allow editing of them.


Possible Values

String


Applies to

TextLabel, Button, Dropdown, Checkbox, OptionButton, TabSheet, FileUploader


Syntax

FX Code

  If Not TextEdit1.Text.isValidEmail Then
      TextLabel1.Caption := 'Email is invalid'
  Else
      TextLabel1.Caption := 'Email is valid';


Related Topics

Properties