Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Simulate BackSpace on a Get
Posted: Mon May 06, 2013 08:17 AM
I made a button "<-" command with the ACTION
ACTION (oGet:varPut(left(oGet:varGet(),len(rtrim(oGet:varGet())-1))))
I have a Get oGet and a GEt oRes
if you see msgcalc() function perhaps you understand
I put thi command insteas of btnpaste button
@ 0,0.5 GET oGet VAR cGet OF oDlg SIZE 95,10
oGet:bChange := {|nKey,nFlag,oB|(Chr(nKey)$"0123456789.")} // Logical
oGet:bKeyDown := { | nKey | VerKey(nKey,oBSum,oBMin,oBMol,oBDiv,oBPer,oBCan,oBRes) }
@ 1,5.6 GET oRes VAR cRes OF oDlg SIZE 55,10 RIGHT COLOR CLR_RED,CLR_WHITE READONLY
//@ 1.3,1 BUTTON oBtn PROMPT "&Paste" OF oDlg ACTION (oBCan:Click(),SayNum(oGet,nVal)) FONT oFont SIZE 38,10
@ 1.3,1 BUTTON oBtn PROMPT "<-" OF oDlg ACTION(oGet:varPut(left(oGet:varGet(),len(rtrim(oGet:varGet())-1)))) FONT oFont SIZE 38,10
I click on <- button and it not make any command
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com