DIALOG SET USER statement

Purpose | Set a value in the user data area of a DDT dialog.
Syntax | DIALOG SET USER hDlg, index&, usrval&

Remarks

Each DDT dialog has a user data area consisting of eight Long-integer values which may be used at the programmer's discretion to save relevant data. DIALOG SET USER allows one of the values to be set, based upon the index parameter value (1 through 8).

hDlg refers to the dialog that owns the user data area.

index& is the index number of the user data value to set, in the range 1 to 8 inclusive.

usrval& is the Long-integer data value to store in the user data area.

Restrictions | Data in the user data area is lost when the dialog is destroyed. The data area is completely separate from the %GWL_USERDATA area maintained by Windows.
See also | Dynamic Dialog Tools, COMBOBOX SET USER, CONTROL GET USER, CONTROL SET USER, DIALOG GET USER, LISTBOX GET USER, LISTBOX SET USER, LISTVIEW GET USER, LISTVIEW SET USER, TREEVIEW GET USER, TREEVIEW SET USER