Duplicate Row after DBDelete() in Listbox

Duplicate Row after DBDelete() in Listbox

Postby Ross_ValuSoft » Wed Jun 23, 2010 3: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
User avatar
Ross_ValuSoft
 
Posts: 87
Joined: Thu Dec 18, 2008 11:27 am
Location: Melbourne, Australia

Re: Duplicate Row after DBDelete() in Listbox

Postby anserkk » Thu Jun 24, 2010 3:59 am

Did you check the Set Deleted ON/OFF status ?

Regards
Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Duplicate Row after DBDelete() in Listbox

Postby Ross_ValuSoft » Thu Jun 24, 2010 6: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
User avatar
Ross_ValuSoft
 
Posts: 87
Joined: Thu Dec 18, 2008 11:27 am
Location: Melbourne, Australia


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 4 guests