Menu

#356 LINE INPUT redirection

open
v1ctor
compiler (247)
2012-10-09
2008-02-29
vspickelen
No

Prepare an inputfile, say "vars.txt"

11
27
31
0
11,27,31
0

Compile the following snippet
and pipe in this < vars.txt

dim a as integer, s as string
do
input "var"; a
print a
loop while a
do
line input "varstr"; s
print s
loop until s = "0"
end

First loop executes o.k., then the program halts while it shouldn't.

QB did alright with this,
having line input redirection in FB also
would make testing & debugging much nicer.

Greetings,
Sjoerd.J.Schaper

Discussion


Log in to post a comment.

MongoDB Logo MongoDB