setLVItemText Help Please

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu