I'm having some problems with my loop for reading a file.
The loop is always running one more than expected. If there are 4
records in the file, then the loop runs 5 times.
I'm wondering how to get it to loop for only the amount of files in
the actual file.
Here is my code:
Do
ll_BytesRead = FileRead( li_Data_FileNum, ls_file_lines )
if ll_BytesRead <> -100 and Asc(ls_file_lines) <> 26 then
ll_FileLength += ll_BytesRead
li_count ++
else
ll_FileLength += Len( ls_file_lines )
end if
Loop Until ll_BytesRead <= 0 or Asc(ls_file_lines) = 26
<cto...@utilitieskingston.com> wrote in message
news:1194967706.0...@v29g2000prd.googlegroups.com...
I'm only using Powerbuilder 9, so i don't think it can be used in that
one
--
Dean Jones
CEO
PowerObjects
http://www.powerobjects.com
(612) 339-3355 Ext. 112
TeamSybase
* * Think Sybase * *
"Chris Pollach" <cpol...@travel-net.com> wrote in message
news:4739ca9b$1@forums-1-dub...
that's what i'm trying to do, but my problem comes up at the end, when
it still tries to process one extra blank row......
Actually, i have just figured it out.
thanks for the help and tips
<cto...@utilitieskingston.com> wrote in message
news:1194970526.5...@s15g2000prm.googlegroups.com...
Regards
Arthur