Navigation:  thinBasic Modules > UI (User Interface) > CONTROLs >

CONTROL SET USER

Previous pageReturn to chapter overviewNext page

 

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

 

CONTROL GET USER

 

Examples