error btnget and fwh712

error btnget and fwh712

Postby norberto » Thu Dec 13, 2007 5:45 pm

hi, i receive this:

Error description: Error BASE/1070 Erro nos parametros: ==
Args:
[ 1] = C
[ 2] = N 0

Stack Calls
===========
Called from: TGET.prg => TBTNGET:KEYDOWN(682)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: CONTROL.prg => TCONTROL:HANDLEEVENT(1392)
Called from: TGET.prg => TBTNGET:HANDLEEVENT(486)
Called from: WINDOW.prg => _FWH(3267)

theres any fix? thanks
norberto
 
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Postby Antonio Linares » Thu Dec 13, 2007 7:51 pm

Norberto,

What source code do you have in line 682 ?

TBTNGET:KEYDOWN(682)
regards, saludos

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

Postby norberto » Thu Dec 13, 2007 10:35 pm

Antonio, this:

if ::bKeyDown != nil
if Eval( ::bKeyDown, nKey, nFlags, Self ) == 0
return 0
endif
endif

i comment this , and works again, but i dont know what´s affect.

thanks
norberto
 
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Postby nageswaragunupudi » Thu Dec 13, 2007 11:09 pm

Where is teh TBtnGet Class? It is not in FWH.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10643
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Postby norberto » Fri Dec 14, 2007 12:32 am

BtnGet is an 3rd part lib , free, i compile the source. works fine until fwh712.
norberto
 
Posts: 566
Joined: Thu Aug 30, 2007 3:40 pm
Location: BR

Postby Antonio Linares » Fri Dec 14, 2007 12:38 am

Norberto,

Please modify Class TGet this way:
Code: Select all  Expand view  RUN
   if ::bKeyDown != nil
      if ValType( uVal := Eval( ::bKeyDown, nKey, nFlags, Self ) ) == "N" .and. ;
         uVal == 0
         return 0
      endif   
   endif   
regards, saludos

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

Postby ShumingWang » Fri Dec 14, 2007 5:33 am

\source\btnget.prg

line 128:
change
::bKeyDown := { | nKey | IIF( nKey == VK_F2, ;
eval( ::bAction ), "") }

into

::bKeyDown := { | nKey | IIF( nKey == VK_F2, ;
eval( ::bAction ), ) }


Regards!

Shuming Wang
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 39 guests