
This method will set the associated item data for the indicated list item. The item data will only accept integer values.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_ListBox_SetItemData MyControlReference [as Reference] nIndex [as Integer] nUserData [as Integer] ) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_ListBox_SetItemData ProjectFile [as String] DialogName [as String] ControlName [as String] nIndex [as Integer] nUserData [as Integer] ) |
Copy Code |
|---|
; Set the user-defined data of the second item (Odcl_ListBox_SetItemData MyProject_MyForm_MyControl 1 8834766) |
ListBox_AddList, ListBox_AddString, ListBox_Clear, ListBox_DeleteString, ListBox_GetCount, ListBox_GetItemData, ListBox_InsertString