setLVItemText Help Please
- Posted by Tony Steward <tony at locksdownunder.com> May 15, 2002
- 393 views
Hi Derek or anyone who can help, When I try to change the contents of part of my LV it just doesn't seem to work. I use this procedure setLVItemText( ID, Row, Column, Text) My Procedure is listed below. Am I doing something wrong or is this a bug? Thanks Tony -- cut from my prog procedure KeyDetailUpdate_onClick () integer recnum, id, lvPos sequence KeyGroupSelected KeyGroupSelected = getLVSelected(KeyMainLV) -- ComKey SelectTable("ComKey") ComKeyKey = getText(KeyNameDetail) recnum = db_find_key(ComKeyKey) if recnum > 0 then ComKeyData = db_record_data(recnum) ComKeyData[1] = getText(KeyDescriptionDetail) db_replace_data(recnum, ComKeyData ) for i = 1 to length(KeyGroupSelected) do id = KeyMainLVID[KeyGroupSelected[i]] if equal(ComKeyKey, getLVItemText(KeyMainLV, id, 1)) then setLVItemText(KeyMainLV, id, 2, ComKeyData[1]) exit end if end for -- end cut and so on