Error in TGet (FWH 9.04)

Error in TGet (FWH 9.04)

Postby hua » Wed May 06, 2009 4:30 am

The error that I got:
Application
===========
Error description: Error BASE/1111 Argument error: LEN
Args:
[ 1] = U

Stack Calls
===========
Called from: => LEN(0)
Called from: TGET.PRG => TGET:KEYDOWN(888)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: .\source\classes\CONTROL.PRG => TCONTROL:HANDLEEVENT(1453)
Called from: TGET.PRG => TGET:HANDLEEVENT(588)
Called from: .\source\classes\WINDOW.PRG => _FWH(3333)
Called from: => DIALOGBOX(0)
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE(273)
Called from: CPV.PRG => CPV_BACCN(575)
.


So, at line 888 and 957 in tget.prg I changed
.... ::oGet:Pos == len( ::oGet:buffer )
to
.... ::oGetPos:buffer != nil .and. ::oGet:Pos == len( ::oGet:buffer )


The error is gone but is the fix accurate?
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Error in TGet (FWH 9.04)

Postby Antonio Linares » Wed May 06, 2009 8:31 am

Hua,

Yes, your fix is right.

Many thanks for your feedback :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 85 guests