Reading from a line

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
izidor
Veteran
Posts: 110
Joined: Wed Apr 22, 2009 3:13 am
Contact:

Reading from a line

Post 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?
411161555
Newbie
Posts: 3
Joined: Thu Dec 03, 2009 9:58 am
Contact:

sorry

Post by 411161555 »

sorry
User avatar
bongomeno
Veteran
Posts: 266
Joined: Wed Dec 10, 2008 9:08 am
Location: Arizona
Contact:

Post 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!
Post Reply