Page 1 of 1

doubt: request cmd

Unread postPosted: 08 Mar 2017, 19:19
by compsystems
Hello, the third argument of REQUEST CMD, what means?

Code: Select all
testReq()
Prgm
  Request "enter x",x,0
EndPrgm

Re: doubt: request cmd

Unread postPosted: 08 Mar 2017, 19:26
by Adriweb
It's to show or hide it in the history once done.

Image

Re: doubt: request cmd

Unread postPosted: 08 Mar 2017, 20:27
by compsystems
but on ti-68k calculators

Re: doubt: request cmd

Unread postPosted: 08 Mar 2017, 21:48
by Bisam
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 !

Re: doubt: request cmd

Unread postPosted: 08 Mar 2017, 22:14
by Adriweb
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

Re: REQUEST CMD

Unread postPosted: 10 Mar 2017, 15:44
by compsystems
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

Re: doubt: request cmd

Unread postPosted: 10 Mar 2017, 17:07
by Adriweb
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.

Re: doubt: request cmd

Unread postPosted: 10 Mar 2017, 17:42
by compsystems
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

Re: doubt: request cmd

Unread postPosted: 10 Mar 2017, 17:50
by Adriweb
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.