11-24-2008, 10:00 PM
Normally listview items in current process are selected using LVM_SETITEMSTATE message, but accessible objects also is OK (also can use a.elem to select by index). I added LvSelect function.
But I don't know is it possible to get row indices in SELECT results.
You can create table that has a column that cannot have duplicate values. The new code adds column A as PRIMARY KEY (cannot have duplicates). Also added better error handling.
Because this is SQLite topic, I used it in code, where it is rational. In your case maybe better to get all cell values into array and search. Then you will have row indices and can select items using them. Added function LvGetAll.
But I don't know is it possible to get row indices in SELECT results.
You can create table that has a column that cannot have duplicate values. The new code adds column A as PRIMARY KEY (cannot have duplicates). Also added better error handling.
Because this is SQLite topic, I used it in code, where it is rational. In your case maybe better to get all cell values into array and search. Then you will have row indices and can select items using them. Added function LvGetAll.