ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Mon Oct 17, 2005 4:52 am Post subject: |
|
|
The PARSE command is for parsing a string containing multiple bits of
information into separate variables or to controls. To read the contents of
a list control or a string list line by line, try the following code::
| Code: |
REM Replace "test.txt" with the appropriate file name
%%file = test.txt
list create,1
list loadfile,1,%%file
%x = 0
if @greater(@count(1),0)
repeat
%I = @item(1,%x)
if @not(@null(%I))
REM If we have some text, display it!
INFO %I
end
%x = @succ(%x)
until @greater(%x,@count(1))
end
list close,1
|
_________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|