FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBROWSE, strange behavior...
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
XBROWSE, strange behavior...
Posted: Thu Mar 07, 2013 10:55 AM
I have this code:
Code (fw): Select all Collapse
cAlias := cGetNewAlias( "UTILE2" )
   USE UTILE2 NEW ALIAS (cAlias) SHARED VIA "DBFCDX"
   SET ORDER TO TAG 1
   GO TOP
ordscope(0,chiavelocate)
ordscope(1,chiavelocate)
DbGotop()

DEFINE FONT oFont NAME 'TAHOMA' SIZE 0,-12
DEFINE DIALOG oDlg SIZE 1000,600 PIXEL TITLE UTILE1->RAGSOC FONT oFont;
            
@ 10,10 XBROWSE oBrw SIZE -10,-30 PIXEL OF oDlg ;
            AUTOSORT FOOTERS LINES CELL ALIAS cAlias ;
            COLUMNS "DESCRI", "UM", "QUANTI", "PREZZO", "EXTRA", "SCONTO", "IMPORT", "COSTO/1000", ;
                    "PERCUT", "EURTON", "KGVEND" ;
            HEADERS "DESCRIZIONE", "UM", "QUANTITA'", "PREZZO", "EXTRA", ;
                    "SCONTO", "IMPORTO", "COSTO", "% UT", "UT/TN", "KG" ;
            PICTURES ,,'@E 9,999,999.99','@E 999.99999','@E 9.99999','@E 999.99','@E 9,999,999.99', ;
                     '@E 999.99999','@E 9999.99','@E 99999.99', '@E 99999.99' ;
            SIZES   280,,70,,,,70

oBrw:bLogicLen = { || reccount()}
            
if !Empty( oCol := oBrw:oCol( "KG" ) )
    oCol:nFooterType := AGGR_SUM
endif   

oBrw:MakeTotals()
oBrw:CreateFromCode()

ACTIVATE DIALOG oDlg CENTERED


and I get this dialog:
http://imageshack.us/photo/my-images/405/dialogdf.png/
" alt="" loading="lazy">

the first row is duplicate (see the second line).
after about 10 seconds the second line disappears...
after about 10 seconds the second line reappears...
and continues...
FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBROWSE, strange behavior...
Posted: Thu Mar 07, 2013 02:05 PM
Please remove this line.
Code (fw): Select all Collapse
oBrw:bLogicLen = { || reccount()}

XBrowse internally takes care of all.
There is no data bLogicLen in xbrowse.
Regards



G. N. Rao.

Hyderabad, India
Posts: 434
Joined: Wed Jun 06, 2007 02:58 PM
Re: XBROWSE, strange behavior...
Posted: Thu Mar 07, 2013 03:45 PM

Hi,
I removed that line but not change.
That dialog is called from another xbrowse.
I have a xbrowse that read file utile1.dbf.
with double click in this xbrowse I open another xbrowse utile2.dbf.
For each record in utile1 there are one or more record in utile2. When I open utile2.dbf, I use ordscope(topdcope, cJoin) and ordscope(bottomscope, cJoin), where in cJoin put the value join.
Can I use other functions?

FiveWin for xHarbour 24.02 - Feb. 2024 - Embarcadero C++ 7.60 for Win32 Copyright (c) 1993-2023

FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)

Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBROWSE, strange behavior...
Posted: Thu Mar 07, 2013 04:41 PM

Please tru specifing Order Tag Name ( not number ) in the statement SET ORDER TO TAG <cTagName>

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion