Calculator revisited

Re: Calculator revisited

Postby Silvio.Falconi » Tue Jun 03, 2014 6:26 am

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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6867
Joined: Thu Oct 18, 2012 7:17 pm

Re: Calculator revisited

Postby Antonio Linares » Tue Jun 03, 2014 6:48 am

Silvio,

Those functions are part of harbour, as far as I know.
regards, saludos

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

Re: Calculator revisited

Postby Biel EA6DD » Tue Jun 03, 2014 8:08 am

Fixed code
Code: Select all  Expand view

...
 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

 
Saludos desde Mallorca
Biel Maimó
http://bielsys.blogspot.com/
User avatar
Biel EA6DD
 
Posts: 682
Joined: Tue Feb 14, 2006 9:48 am
Location: Mallorca

Re: Calculator revisited

Postby Silvio.Falconi » Wed Jun 04, 2014 2:52 pm

Antonio I mean ... with Getcalc of Tim ..
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6867
Joined: Thu Oct 18, 2012 7:17 pm

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

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