Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SQL Lite and QM
#15
Hi Gintaras,
First, I can't thank you enough for writing the code to enable Sqlite in conjunction with QM. I like working with QM because it's native to the rest of my QM code and is quick. It has allowed me to get rid of installing Excel and then doing a very long GUI-hack behind a Curtain....I couldn't be more pleased.

My issue now is understanding how to get selected row information out of the grid and how to search to find rows with specific text in one of the fields in that row.

I saw in qmgrid this help text

Function qmgrid
Code:
Copy      Help
;C. Getting text from cells.
;Use LVM_GETITEMTEXT to get text from each cell you need. Or, use LVM_QG_GETALLCELLS to get all cells. Or use ICsv.FromQmGrid.

but I am not sure how to incorporate it.

For Select, I am trying to select some rows (using the qmgrid functions already in place), and then extract the contents of one of the columns from the selected rows and put them into an array. Once I get the selected rows out and know how to find a column item, I can do the string/array manipulation.

For Find, I am trying to code one of those "Find/Find Next functions found in many applications. I think you mentioned that it would only show (select) the row, but that's fine.

Sorry for not posting an example but if you have the time (sorry for so many questions), even a simple example based on the dlg_QM_Grid2 example would get me very far.

Thanks so much again.

Stuart


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)