FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse position on append
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

xBrowse position on append

Posted: Thu Sep 10, 2009 09:52 PM

I have an interesting problem that is consistent with several different browses. I'm curious if anyone has a solution.

My dialog box has data displayed in the uppper half, and a browse ( xbrowse ) in the lower half. The data in the top corresponds to the selected browse record.

If I open the dialog, and have several records already displayed, they are shown correctly. Now, if I append a record, I don't have a problem with the display until I do a Save, at which time the browse resets with only the newly added item displayed at the top of the browse. A page up will show the other items, but that will also repostion the focus.

The Save button does the following ACTION ( oInv:save( ), oDiw:update( ), oLbxin:setfocus( ) )

oInv is the database object ( TDATA )
oDiw is the dialog which contains both edit fields and the browse
oLbxin is the browse

What we want to happen is to have the new record simply added to the bottom of the displayed items already showing on the browse. I've tried repositioning commands, but sometimes that doesn't make the browse highlighted item match the database item.

I would appreciate any thoughts anyone might have on this. It really annoys my clients.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Re: xBrowse position on append

Posted: Thu Sep 10, 2009 10:57 PM
Hello Tim,

First, Thank You for Your Response on my Tool-Update :-) .

There is a Indexorder on FIRST.
With SET ORDER TO, there is no Sort anymore ( Natural Sort )
it means a APPEND BLANK will show the new Record on xBrowse-Bottom.


Best Regards
Uwe :-)
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM

Re: xBrowse position on append

Posted: Fri Sep 11, 2009 12:40 AM

That would be problematic because I use a scope ... and I dont go into an append mode !

However, I just discovered that it happens the first time when I enter the browse because the highlight is on the first record. If I go to the bottom of the browse first, then it adds/displays correctly ! oLbx:gobottom(), oRec:append() etc.

Thanks ... problem fixed and tested !

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion