Text屬性
套用至
Form、Button、Label、TextBox、RadioButton、Checkbox、ComboBox、GroupBox、LED 、StatusBar
描述
取得或設定與控制項相關的文字。
使用方式
GGet Form.[Control].Text, var
GSet Form.[Control].Text, value
- Form
- 指定表單名稱或含表單名稱的字串變數。
- Control
- 指定控制項名稱或含控制項名稱的字串。
- var
- 指定取得屬性值的字串變數
- value
- 指定屬性中設定的字串運算式。
數值
包含表單或控制項文字的字串。
另請參閱
Form、Button、Label、TextBox、RadioButton、Checkbox、ComboBox、GroupBox、LED 、StatusBar、TextAlign
範例
GSet frmMain.lblName.Text, "Name: "
← TabText屬性 TextAlign屬性 →