FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Pocket PC Delete last record of a table
Posts: 48
Joined: Sun Oct 30, 2005 09:29 AM
Delete last record of a table
Posted: Sun Oct 30, 2005 09:54 AM
Hello All,

I am facing a problem which is existing in all my browses.
I show a table within a browse.
If i delete a record in the middle of the browse, all work as expected.
The problem is when i delete the last record of the browse (not lthe last record of the table, records can be filtered). The record is correctly deleted but the new last record is displayed twice.
If i close the browse and reopen it, all is ok again.
Raymond Fischbach
www.mouches.org
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Delete last record of a table
Posted: Sun Oct 30, 2005 11:04 AM

Raymond,

Please do a <oBrowse>:Refresh() after you delete the record. It will force a repaint of the entire browse.

Please let us know if that fixes it. Thanks!

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 48
Joined: Sun Oct 30, 2005 09:29 AM
Delete last record of a table
Posted: Sun Oct 30, 2005 04:19 PM

Antonio,

Of course I did it. I just forgot to mention it in my post. I even tried to do a gotop() before refreshing but the problem persists.

Thank you anyway,
Raymond

Raymond Fischbach
www.mouches.org
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Delete last record of a table
Posted: Sun Oct 30, 2005 06:37 PM

Raymond,

have you tried it in both the emulator and the real Pocket PC ? Do they behave the same way ? Thanks.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 48
Joined: Sun Oct 30, 2005 09:29 AM
Delete last record of a table
Posted: Sun Oct 30, 2005 06:58 PM

Antonio,

I did not try it with the emulator but directly on the Pocket PC.

Regards

Raymond Fischbach
www.mouches.org
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Delete last record of a table
Posted: Sun Oct 30, 2005 07:41 PM

Raymond,

Please try it also on the emulator. Thanks.

Are you familiar with it ? Let me know if you need some assistance.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 48
Joined: Sun Oct 30, 2005 09:29 AM
Delete last record of a table
Posted: Mon Oct 31, 2005 09:05 AM

Antonio,

Thank you for your help to install the emulator.

I did install it and tried the application with the same results as in the pocket pc

Here is the code snippet :

@ 14.4,20.5 BUTTON "Sup." SIZE 40, 35 ACTION (SuiDel(aParams,oSui,oSui:Recno()),oSui:GoTop(),oBrw:refresh(),oBrw:SetFocus())

oSui = Tdatabase of the dbf

Thanks for any hint
Raymond

Raymond Fischbach
www.mouches.org
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Delete last record of a table
Posted: Mon Oct 31, 2005 09:25 AM

Raymond,

Could you modify our provided tutor10.prg sample to reproduce the error ? Thanks,

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 48
Joined: Sun Oct 30, 2005 09:29 AM
Delete last record of a table
Posted: Mon Oct 31, 2005 09:34 AM

Sure, but i will need some time as i have other urgent things to do now.

Raymond Fischbach
www.mouches.org
Posts: 48
Joined: Sun Oct 30, 2005 09:29 AM
Delete last record of a table
Posted: Mon Oct 31, 2005 10:44 AM

Antonio,

I have sent you by prv mail a modified tutor10 that shows the problem.

HTH,
Raymond

Raymond Fischbach
www.mouches.org

Continue the discussion