FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Bugs report & fixes / Informe de errores y arreglos xBrowse with ADS
Posts: 731
Joined: Fri Oct 07, 2005 07:42 AM
xBrowse with ADS
Posted: Mon Jul 07, 2008 08:53 AM

Antonio, i have simple xBrowse, from version Fivewin 8.04, i have at error very stupid, using ADS;
( And yes, I put REQUEST ADS...etc...etc.. )

FUNCTION Exclusiones()
Local oDlg, oDbf, oBrw, oTdbf, oDbKSegOri

USE TEST NEW SHARED
DATABASE oDbKSegOri

DEFINE DIALOG oDlg NAME "EXCLUIR" TITLE "Exclusion del kiosko"

  oBrw := TXBrowse():New( oDlg )
  oBrw:nMarqueeStyle       := MARQSTYLE_HIGHLROW

  oBrw:CreateFromResource( 101 )
  oBrw:SetRDD()

  oBrw:aCols[ 1 ]:cHeader = "CODIGO"
  oBrw:aCols[ 2 ]:cHeader = "TIPO"
  oBrw:bClrStd := {|| { CLR_BLACK, ChoiseColor( oDbKSegOri:TIPO ) } }

ACTIVATE DIALOG oDlg CENTER

oTDbf:Close()

RETURN NIL

STATIC FUNCTION ChoiseColor( cTipo )
Local uColor := CLR_WHITE

do case
case cTipo = "A"
uColor := CLR_HRED
case cTipo = "H"
uColor := CLR_HGREEN
case cTipo = "O"
uColor := CLR_YELLOW
case cTipo = "S"
uColor := CLR_HBLUE
end case

RETURN uColor

But I found error if I move column , i have this error;
Application
===========
Path and name: C:\ULYWIN\HOTELS\hotels32.exe (32 bits)
Size: 4,720,640 bytes
Time from start: 0 hours 0 mins 7 secs
Error occurred at: 07/07/08, 10:38:39
Error description: Error BASE/1004 Class: 'NIL' has no exported method: NLEN
Args:
[ 1] = U

Stack Calls

Called from: => NLEN(0)
Called from: xbrowse.prg => (b)TXBROWSE:SETRDD(2523)
Called from: xbrowse.prg => TXBROWSE:REFRESH(696)
Called from: xbrowse.prg => TXBRWCOLUMN:RESIZEEND(4317)
Called from: xbrowse.prg => TXBROWSE:LBUTTONUP(2244)

Well, I see exist this DATA nLen, but, i not find where is the problemn...

Saludos

Rafa Carmona ( rafa.thefullARROBAgmail.com___quitalineas__)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
xBrowse with ADS
Posted: Mon Jul 07, 2008 09:51 AM

Rafa,

It was fixed in FWH 8.05. Please add these extra parameters in method Refresh() call to Eval():

nKeyNo = Eval( ::bKeyNo,,Self )

Si usas un objeto database, entonces has de usar oXBrowse:SetoDbf( oDbf [, aFldNames] )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 731
Joined: Fri Oct 07, 2005 07:42 AM
xBrowse with ADS
Posted: Mon Jul 07, 2008 05:00 PM
Antonio Linares wrote:Rafa,

It was fixed in FWH 8.05. Please add these extra parameters in method Refresh() call to Eval():

nKeyNo = Eval( ::bKeyNo,,Self )

Si usas un objeto database, entonces has de usar oXBrowse:SetoDbf( oDbf [, aFldNames] )


Thanks Antonio, but in this version Fivewin , i found another bug.

Please, users Fivewin of version 8.04, replace method PageUp()

if Eval( ::bkeyno ) < ::nRowSel
Eval( ::bKeyNo, ::nRowSel )
endif
by
if Eval( ::bkeyno,,Self ) < ::nRowSel
Eval( ::bKeyNo, ::nRowSel, Self )
endif
Saludos

Rafa Carmona ( rafa.thefullARROBAgmail.com___quitalineas__)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
xBrowse with ADS
Posted: Mon Jul 07, 2008 06:17 PM

Rafa,

Thanks! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion