<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Pseudo-object Methods and Properties > <ControlName>.User |
Description
Allows assigning/retrieving the user data of control variable.
Syntax
' Set
<controlName>.User(index) = customValue
' Get
customValue = <controlName>.User(index)
Returns (Get only)
Number, stored custom value
Parameters (Set only)
Name |
Type |
Optional |
Meaning |
index |
Number |
No |
Number in range 1-4 |
customValue |
Long |
No |
Any custom value |
Remarks
Restrictions
See also
Examples
control add button name "closeButton", hDlg, %IDCANCEL, "", 5, 5, 100, 25
' Stores the value of 42 to the slot #1 in control user data
closeButton.User(1) = 42