Page 1 of 1

Reading from a line

Posted: Sun Nov 22, 2009 1:40 pm
by izidor
Before in my BASIC language one command was separated in few lines like:

Code: Select all

line
10
10
200
200
1
and now I want to make it like this:

Code: Select all

line>10,10,200,200,1
.
I thought to do it with RIGHT$, LEFT$ and MID$, but there are more variables and they can have different values like 10 and 100 (but this could be solved if there would be 010 not 10).
And I'm out of ideas. Could anyone help?

sorry

Posted: Thu Dec 03, 2009 10:10 am
by 411161555
sorry

Posted: Thu Dec 03, 2009 11:32 pm
by bongomeno
wow, I feel stupid... I just tried to send a HUGE post with lots of info on parsing and it got lost again. lol :roll:

anyways, part of what I was trying to say was that on my website you can find several examples of string parsing with my PROSEED interpreter and my GBE basic to C translator. as well as my text adventures.

functions that you no doubt will need to use are:
MID$()
RIGHT$()
LEFT$()
UCASE$()
LCASE$()
LEN()
INSTR()
LTRIM$()
RTRIM$()
VAL()
STR$()

sorry I didnt get to this post earlier.
if you have any wuestiong on parsing, let me know!