Duplicate Row after DBDelete() in Listbox

Post Reply
User avatar
Ross_ValuSoft
Posts: 87
Joined: Thu Dec 18, 2008 11:27 am
Location: Melbourne, Australia

Duplicate Row after DBDelete() in Listbox

Post 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
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Duplicate Row after DBDelete() in Listbox

Post by anserkk »

Did you check the Set Deleted ON/OFF status ?

Regards
Anser
User avatar
Ross_ValuSoft
Posts: 87
Joined: Thu Dec 18, 2008 11:27 am
Location: Melbourne, Australia

Re: Duplicate Row after DBDelete() in Listbox

Post 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
Post Reply