This is a part of a program which stores text into a list (string=>list routine) and then outputs a bookmark number which you need to enter when you want to recall the string. The bookmark's integer part indicates where the program must start reading, and the decimal part*100 indicates the number of list elements that must be read. Everything worked well, but I wanted some user input validation, to get rid of all those ERR:DOMAIN errors. I wrote the following code:
<previous part of program> :Repeat iPart(B)+100fPart(B)≤dim(∟SHT and B>0 and fPart(B) :Input "BOOKMARK?",B :If iPart(B+100fPart(B)>dim(∟SHT or B≤0 or not(fPart(B) :Disp "INVALID BMK" :End
Now, when I input, for example 27.13 with dim(∟SHT)=40, I get "invalid bookmark", and when I input 27.12, the string returned is incomplete. Please help me resolve this problem!
EDIT:After this part of code, the program converts the list back into a string.