<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Commands > CONTROL SET USER |
Description
Set a value in the user data area of a control.
Syntax
CONTROL SET USER hwnd, ctrlID, UsedIndex, UserValue
Returns
None
Parameters
Name |
Type |
Optional |
Meaning |
hwnd |
Number |
No |
Handle of the dialog containing the control |
ctrlID |
Number |
No |
Control identifier assigned to the control during CONTROL ADD ... |
UsedIndex |
Number |
No |
Index from 1 to 4 |
UserValue |
Number |
No |
A LONG data value to store in the user data area |
Remarks
Many controls have a user data area consisting of 4 Long-integer values which may be used by the programmer to save relevant data.
CONTROL SET USER allows one of the values to be set, based upon the index parameter value (1 through 4).
Restrictions
See also
Examples