In a message dated 10-01-99, Eddy Thilleman said to Mike Ruskai about
"hstart wget?"
Hi Eddy,
MR> It's 'READY:', not 'READY'. Though in PC-DOS 7's REXX, it is 'READY'.
MR> So, you might want to do this:
MR> if left(check,5) != 'READY' then do
ET>In my latest version, I do
ET> if pos( 'READY', check ) = 1 then /* if we opened file */
The definitive test is really an exact byte comparison on the string:
IF check == 'READY:' THEN
Note the double equal sign.
ET>the same condition with the do while
ET>> do while stream( InFile, 'state' ) = 'READY'
MR> lines() or chars() would be better here.
ET>why?
I don't see any reason. In fact, checking the STATE would be marginally less
overhead. Again, I would recommend an exact byte comparison:
DO WHILE STREAM(InFile,'STATE') == 'READY'
Regards
Dave
___
* MR/2 2.25 #353 * "More tea, vicar?"
--- Maximus/2 3.01
45
* Origin: Air Applewood, OS/2 Gateway to Essex 44-1279-792300 (2:257/609)
|