CONTROL GET USER

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Commands >

CONTROL GET USER

 

Description

 

Retrieve a value from the user data area of a control.

 

Syntax

 

CONTROL GET USER hwnd, ctrlID, UsedIndex TO 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

Variable

No

A numeric variable that will receive requested user value

 

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 GET USER allows one of the values to be retrieved, based upon the index parameter value (1 through 4).

 

Restrictions

 

See also

 

CONTROL SET USER

 

Examples