home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 10
/
Fresh_Fish_10_2352.bin
/
useful
/
util
/
edit
/
mg
/
rexx
/
flen.mg
< prev
next >
Wrap
Text File
|
1990-06-02
|
508b
|
32 lines
/* Search for lines of the specified minimum lenght */
/* Handles TABs correctly */
options results
'rexx-request "Line length: "'
len=result
foo=0
do until foo~=0
'rexx-line'
bar=notab(result)
if length(bar)>=len then foo=666
else do
'next-line'
foo=rc
end
end
if foo~=666 then return 1
exit
notab:procedure
parse arg line
tmp=1
do until tmp=0
tmp=index(line,'09'x)
if tmp>0 then do
no=9-(tmp//8)
line=delstr(line,tmp,1)
line=insert(left("",no),line,tmp-1)
end
end
return line