fwh712 btnget - tget.prg- bkeydown error

Post Reply
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

fwh712 btnget - tget.prg- bkeydown error

Post by ShumingWang »

Hi,
Input chars to btnget, call from Tget.prg,

METHOD KeyDown( nKey, nFlags ) CLASS TGet

add the lines compare to v7.11
if ::bKeyDown != nil
if Eval( ::bKeyDown, nKey, nFlags, Self ) == 0 //Runtime Error description: Error BASE/1070 Argument error: ==
return 0
endif
endif

Best Regards!
Shuming Wang
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Shuming,

You have to modify bKeyDown in BtnGet so it returns nil or a number
regards, saludos

Antonio Linares
www.fivetechsoft.com
ShumingWang
Posts: 454
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Post by ShumingWang »

Antonio,
Done.
Thanks !
Shuming Wang
Post Reply