π
<-

doubt: request cmd

Programmation et implémentation d'algorithmes.

doubt: request cmd

Unread postby compsystems » 08 Mar 2017, 19:19

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

Code: Select all
testReq()
Prgm
  Request "enter x",x,0
EndPrgm
User avatar
compsystems
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Level up: 41.8%
 
Posts: 258
Joined: 30 May 2011, 13:44
Gender: Male
Calculator(s):
MyCalcs profile

Re: doubt: request cmd

Unread postby Adriweb » 08 Mar 2017, 19:26

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

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...)
My calculator programs
Mes programmes pour calculatrices
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 80%
 
Posts: 14843
Images: 1133
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

Re: doubt: request cmd

Unread postby compsystems » 08 Mar 2017, 20:27

but on ti-68k calculators
User avatar
compsystems
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Level up: 41.8%
 
Posts: 258
Joined: 30 May 2011, 13:44
Gender: Male
Calculator(s):
MyCalcs profile

Re: doubt: request cmd

Unread postby 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 !
User avatar
BisamAdmin
Niveau 15: CC (Chevalier des Calculatrices)
Niveau 15: CC (Chevalier des Calculatrices)
Level up: 69.6%
 
Posts: 5670
Joined: 11 Mar 2008, 00:00
Location: Lyon
Gender: Male
Calculator(s):
MyCalcs profile

Re: doubt: request cmd

Unread postby 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

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...)
My calculator programs
Mes programmes pour calculatrices
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 80%
 
Posts: 14843
Images: 1133
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

Re: REQUEST CMD

Unread postby 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: Select all
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: Select all
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: Select all
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
User avatar
compsystems
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Level up: 41.8%
 
Posts: 258
Joined: 30 May 2011, 13:44
Gender: Male
Calculator(s):
MyCalcs profile

Re: doubt: request cmd

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

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...)
My calculator programs
Mes programmes pour calculatrices
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 80%
 
Posts: 14843
Images: 1133
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb

Re: doubt: request cmd

Unread postby 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
User avatar
compsystems
Niveau 9: IC (Compteur Infatigable)
Niveau 9: IC (Compteur Infatigable)
Level up: 41.8%
 
Posts: 258
Joined: 30 May 2011, 13:44
Gender: Male
Calculator(s):
MyCalcs profile

Re: doubt: request cmd

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

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...)
My calculator programs
Mes programmes pour calculatrices
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 80%
 
Posts: 14843
Images: 1133
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb


Return to Programmation

Who is online

Users browsing this forum: ClaudeBot [spider] and 1 guest

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
2014 utilisateurs:
>2003 invités
>4 membres
>7 robots
Record simultané (sur 6 mois):
29271 utilisateurs (le 11/07/2025)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)