π
<-
Chat plein-écran
[^]

doubt: request cmd

Programmation et implémentation d'algorithmes.

doubt: request cmd

Message non lude compsystems » 08 Mar 2017, 19:19

Hello, the third argument of REQUEST CMD, what means?

Code: Tout sélectionner
testReq()
Prgm
  Request "enter x",x,0
EndPrgm
Avatar de l’utilisateur
compsystems
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Prochain niv.: 40.2%
 
Messages: 256
Inscription: 30 Mai 2011, 13:44
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: doubt: request cmd

Message non lude Adriweb » 08 Mar 2017, 19:26

It's to show or hide it in the history once done.

Image
Image

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
Avatar de l’utilisateur
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 80.1%
 
Messages: 14606
Images: 1216
Inscription: 01 Juin 2007, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Twitter/X: adriweb
GitHub: adriweb

Re: doubt: request cmd

Message non lude compsystems » 08 Mar 2017, 20:27

but on ti-68k calculators
Avatar de l’utilisateur
compsystems
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Prochain niv.: 40.2%
 
Messages: 256
Inscription: 30 Mai 2011, 13:44
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: doubt: request cmd

Message non lude Bisam » 08 Mar 2017, 21:48

On TI 89, the third argument is for "alpha-lock on or off".
If it is 0, then alpha-lock is off... and it allows to enter numbers more easily.
Any other value, or no argument at all gets to alphalock ON.

On Voyage 200... this is totally useless !
Avatar de l’utilisateur
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Prochain niv.: 69.5%
 
Messages: 5665
Inscription: 11 Mar 2008, 00:00
Localisation: Lyon
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: doubt: request cmd

Message non lude Adriweb » 08 Mar 2017, 22:14

Oops yeah, I read "Basic Nspire" in the code box and didn't really look elsewhere ... :D
Looks like the Nspire Basic is better on this regard, then
Image

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
Avatar de l’utilisateur
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 80.1%
 
Messages: 14606
Images: 1216
Inscription: 01 Juin 2007, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Twitter/X: adriweb
GitHub: adriweb

Re: REQUEST CMD

Message non lude compsystems » 10 Mar 2017, 15:44

sorry for my bad english

The REQUEST CMD (TI-68K CALCS) is practically the same that the REQUEST of the TI-NSPIRE-CX-CAS

example#0
Code: Tout sélectionner
reqDemo()
Prgm
  ClrIO
  Local statsvar,alphalck
  0→alphalck
  Request "Radious",r,alphalck
  expr(r)→r
  ok→statsvar
  If ok=1 Then
    Disp "Area = π*"&string(r)&"² = "&string(π*r^2.)&" u²"
  EndIf
  Pause:DispHome
EndPrgm


Now if you want to return to the HOME history, use the copytoh89.v2z/89z ASM PRG (renamed to return_h.v2z/89z)
http://www.ticalc.org/archives/files/fi ... 16366.html

Code: Tout sélectionner
reqDemo1()
Prgm
  ClrIO
  Local statsvar,radious,area,r
  "radious"→radious
  Request radious,r
  expr(r)→r
  π*r^2.→area
  ok→statsvar
  If statsvar=1 Then
    return_h("radious","area")
  EndIf
EndPrgm


Image

Comparing with the competition (hp-prime) the dialog boxes of Texas Instruments (TI-NSPIRE SERIES) is below, only equals, if the TI-development group re-incorporate to TI-BASIC the following structure (DO YOU AGREE?)
Code: Tout sélectionner
Dialog
...
EndDlog


A dialog boxes tutorial for TI-68K (link)
viewtopic.php?f=5&t=19694


A dialog boxes tutorial for hp-prime (pdf)
http://eonicasys.com.co/public/math/CAS/hp_prime/libraries/dialogBoxes/tutorial_dialogBoxes_hp_prime.pdf

More info about (hp-prime forum)
http://www.hpmuseum.org/forum/thread-7832.html
Avatar de l’utilisateur
compsystems
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Prochain niv.: 40.2%
 
Messages: 256
Inscription: 30 Mai 2011, 13:44
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: doubt: request cmd

Message non lude Adriweb » 10 Mar 2017, 17:07

TI figured people didn't really need such dialog boxes, as sequential Request and/or arguments were enough for their purposes.
But it's not really wrong: dialog boxes are just a little graphically fancier, that's all.
Image

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
Avatar de l’utilisateur
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 80.1%
 
Messages: 14606
Images: 1216
Inscription: 01 Juin 2007, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Twitter/X: adriweb
GitHub: adriweb

Re: doubt: request cmd

Message non lude compsystems » 10 Mar 2017, 17:42

Just look at the hundreds of programs that were written in ti-68k language with dialog boxes. //www.ticalc.org (that can not be port). This is a sufficient condition to have incorporated it from the first firmware versions of the ti-nspire series, but it is never late and I expect to see the structure Dialog ... EndDlog returned

With the current form if you want to enter n variables with the current REQUEST you must request them one by one, the code is extended, and is very tedious to enter data by data after pressing [ok]

Look how easy it is to create a dialog box in HPP-PL (HP-PRIME PROGRAMMING LANGUAGE), A solution is LUA, but LUA is not a BASIC-like language, which is equivalent code in LUA?
Image
Avatar de l’utilisateur
compsystems
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Prochain niv.: 40.2%
 
Messages: 256
Inscription: 30 Mai 2011, 13:44
Genre: Homme
Calculatrice(s):
MyCalcs profile

Re: doubt: request cmd

Message non lude Adriweb » 10 Mar 2017, 17:50

Equivalent in Lua would be like what FormulaPro has:

Image

The code can be found here https://github.com/adriweb/EEPro-for-Ns ... 0FPGui.lua
But the core of having a few inputs and labels is just a few lines. here it's longer because of all the things it does in addition to just input.
Image

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
Avatar de l’utilisateur
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Prochain niv.: 80.1%
 
Messages: 14606
Images: 1216
Inscription: 01 Juin 2007, 00:00
Localisation: France
Genre: Homme
Calculatrice(s):
MyCalcs profile
Twitter/X: adriweb
GitHub: adriweb


Retourner vers Programmation

Qui est en ligne

Utilisateurs parcourant ce forum: Aucun utilisateur enregistré et 16 invités

-
Rechercher
-
Social TI-Planet
-
Sujets à la une
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
Faire un don / Premium
Pour plus de concours, de lots, de tests, nous aider à payer le serveur et les domaines...
Faire un don
Découvrez les avantages d'un compte donateur !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partenaires et pub
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
2349 utilisateurs:
>2334 invités
>11 membres
>4 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Autres sites intéressants
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)