Index | math | Lists | strings | complex | matrix | poly |
hexa/bin | date/time | progs | conversion | files | apn |
The "Quick List Entry" method | |
The "String Source" method |
![]() |
hit { to start building a list. type here your program. The script is 5 DUP 3 + 2 ->List What does do that script in fact ? |
![]() |
hit OK, now you have the list on the stack. |
![]() |
You must use List->Script to convert this list into StringSourceHit the TAB key of your keyboard and search for List->Script. |
![]() |
Now, you have a string on the stack : this is the StringSource please note that you cannot revert this string into the list ! that's the only negative aspect of this method. as a workaround, you can DUP the list before using List->Script. |
![]() |
We will now save this script (string) into VAR You must choose a name and use STOScript. The name here is "abc". NOTE : don't use STO to save, STO will save as a STRING. STOScript will save a SCRIPT. |
![]() |
Ok, it's done, take a look at the VAR menu, you will see a new function : abc |
function | note | example |
input |
request for input from user, script is halted and waiting for user to enter something or use cancel button |
"information text" display this text in dialogbox
{ "info txt" default-value } for example : { "enter you name" "bob"} other example : {"1+1=?" 3 }
|
FOR ... NEXT |
can be used only in script perform a loop. theFORtakes two values from the stack The current index is given by INDEX You can nest many loops |
this is a script in QLE method : { 1 10 FOR INDEX NEXT } |