Page 1 of 1

Duplicate Row after DBDelete() in Listbox

Posted: Wed Jun 23, 2010 3:18 pm
by Ross_ValuSoft
Hello everyone.

I am viewing the contents of a dbf in a listbox (oLst). If I go to the last row and delete that record in the dbf with dbdelete() and then issue oLst:Refresh(), all of the previous contents of the listbox are displayed exactly as before plus the second last row is duplicated in the last row.

What am I doing wrong?

Thanks,

Ross

Re: Duplicate Row after DBDelete() in Listbox

Posted: Thu Jun 24, 2010 3:59 am
by anserkk
Did you check the Set Deleted ON/OFF status ?

Regards
Anser

Re: Duplicate Row after DBDelete() in Listbox

Posted: Thu Jun 24, 2010 6:18 am
by Ross_ValuSoft
Thanks for your suggestion Anser.

I have been able to solve it about an hour ago by inserting a DBGoTop() followed by a DBGoBottom() and finished with oLst:Refresh()

Cheers,

Ross