
Calculator revisited
- Silvio.Falconi
- Posts: 7142
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 1 time
Re: Calculator revisited
Antonio, yes of course, But I not Know How I must make to run also extern functions... 

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
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
- Antonio Linares
- Site Admin
- Posts: 42560
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 32 times
- Been thanked: 80 times
- Contact:
- Biel EA6DD
- Posts: 682
- Joined: Tue Feb 14, 2006 9:48 am
- Location: Mallorca
- Contact:
Re: Calculator revisited
Fixed code
Code: Select all | Expand
...
REDEFINE BUTTON oBtnDel ID 426 OF oDlg MESSAGE 'Borra último dígito';
ACTION (::cUltima:='CE' ,;
iif(::cUltimaOp='=' .or. ::cUltimaOp='AP' .or. ::cUltimaOp='AE' ,; //IF
(::cUltimaOp:='',::nResult:=0,aadd( ::aRolloCalc, {' ',' '} ),oBrw:gobottom(),oBrw:refresh()),; //THEN
NIL ) ,; //ELSE
iif(nGet<>0 ,; //IF
(cGet:=LEFT(cGet,len(cget)-1),nGet:=val(cGet)),; //THEN
NIL) ,; //ESLSE
oGet:SetText(cGet) ,;
oBtnIgual:Setfocus() ,;
sysrefresh() ) UPDATE
...
REDEFINE BUTTON oBtn0 ID 100 OF oDlg ;
ACTION (::cUltima:='0' ,;
iif(::cUltimaOp='=' .or. ::cUltimaOp='AP' .or. ::cUltimaOp='AE' ,;
(::cUltimaOp:='',::nResult:=0,aadd( ::aRolloCalc, {' ',' '} ), oBrw:gobottom(),oBrw:refresh()),;
NIL ) ,;
iif(nGet<>0 .or. at(".",cGet)>0 ,;
( cGet:=cGet+::cUltima, nGet:=val(cGet)),;
NIL ) ,;
oGet:SetText(cGet) ,;
oBtnIgual:Setfocus() ,;
sysrefresh() ) UPDATE
- Silvio.Falconi
- Posts: 7142
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 1 time
Re: Calculator revisited
Antonio I mean ... with Getcalc of Tim ..
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
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