09-14-2015, 05:28 PM
I have been trying to use INPUT to input search strings for my Z EDITOR program.
But the Prime seems to parse some inputs without passing them straight to the user program.
For example, if you type in a single bracket, INPUT shows a pair. This happens whether you enter a bracket by using the () key, then cursor right and delete left. Or by using Shift/Chars and then selecting a single bracket.
Is there a way to avoid this, so that I could search for "WAIT(" for example, rather than "WAIT()" BUT NOT "WAIT(1"?.
But the Prime seems to parse some inputs without passing them straight to the user program.
For example, if you type in a single bracket, INPUT shows a pair. This happens whether you enter a bracket by using the () key, then cursor right and delete left. Or by using Shift/Chars and then selecting a single bracket.
Is there a way to avoid this, so that I could search for "WAIT(" for example, rather than "WAIT()" BUT NOT "WAIT(1"?.
Code:
EXPORT TRYIN()
BEGIN
LOCAL IN,TTL,LBL,HLP,RST,IVL;
PRINT();
IN:="";
TTL:="TRYING INPUT";
LBL:="INP";
HLP:="HLP";
RST:="";
IVL:="";
INPUT(IN,TTL,LBL,HLP,RST,IVL);
PRINT(IN);
PRINT(SIZE(IN));
PRINT(DIM(IN));
PRINT(ASC(IN));
//PRINT(STRING(IN));
//PRINT(QUOTE(EXPR(IN)));
WAIT;
END;