
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_ListView_SetItemData MyControlReference [as Reference] nItemIndex [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_ListView_SetItemData ProjectFile [as String] DialogName [as String] ControlName [as String] nItemIndex [as Integer] nUserData [as Integer]) |
Copy Code |
|---|
; Update the user-defined data of the fifth row (Odcl_ListView_SetItemData MyProject_MyForm_MyControl 4 1024) |
ListView_AddItem, ListView_AddItem (Report Style), ListView_Clear, ListView_CountItems, ListView_DeleteItem, ListView_DeleteItems, ListView_FillList, ListView_FillList (Report Style), ListView_GetCount, ListView_GetItemData, ListView_GetItemImage, ListView_GetItemText, ListView_GetRowItems, ListView_InsertItem, ListView_InsertItem (Report Style) ListView_SetItemImage, ListView_SetItemText