dialogBoxes: requestCmd

Messages in english

Modérateur : xcasadmin

compsystems
Messages : 603
Inscription : sam. févr. 04, 2017 11:34 pm
Localisation : Colombia
Contact :

dialogBoxes: requestCmd

Message par compsystems » jeu. sept. 14, 2017 10:58 pm

Xcas v1.4.9-1 =)

Hello, Bernard, the REQUEST command of Xcas, modifies the OK variable to 1 when [enter] is pressed, as the ti68k calcs, but when you press [CANCEL] Xcas must assign the value of zero to OK variable, for the purpose of executing selective code .
...
: Else
: Disp ok
: ...
...

Image

Code : Tout sélectionner

:requestcmd0()
:Prgm
:  ClrIO
:  Local r
:  Request "Radious",r
:  If ok==1 Then
:    Disp ok 
:    expr(r)→r 
:    Disp "r="&r
:    Disp "Area = π*"&string(r)&"² = "&string(π*r^2)&"_u²"
:  Else 
:    Disp ok  
:  EndIf
:  // Pause
:  DispHome
:EndPrgm:;

parisse
Messages : 5882
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

Re: dialogBoxes: requestCmd

Message par parisse » ven. sept. 15, 2017 9:36 am

Ok, I'll do that!

Répondre