FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Duplicate Row after DBDelete() in Listbox
Posts: 87
Joined: Thu Dec 18, 2008 11:27 AM
Duplicate Row after DBDelete() in Listbox
Posted: Wed Jun 23, 2010 03:18 PM

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

Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: Duplicate Row after DBDelete() in Listbox
Posted: Thu Jun 24, 2010 03:59 AM

Did you check the Set Deleted ON/OFF status ?

Regards
Anser

Posts: 87
Joined: Thu Dec 18, 2008 11:27 AM
Re: Duplicate Row after DBDelete() in Listbox
Posted: Thu Jun 24, 2010 06:18 AM

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

Continue the discussion