<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Pseudo-object Methods and Properties > <ControlName>.Text |
Description
Allows assigning/retrieving the text from a control variable.
Syntax
' Set
<controlName>.Text = stringValue
' Get
sText = <controlName>.Text
Returns (Get only)
String, text of the control
Parameters (Set only)
Name |
Type |
Optional |
Meaning |
stringValue |
String |
No |
Text to be assigned to the control |
Remarks
Restrictions
See also
Examples
control add button name "closeButton", hDlg, %IDCANCEL, "", 5, 5, 100, 25
' No need to use hDlg, %IDCANCEL, you can use the name directly
closeButton.Text = "My button"