home *** CD-ROM | disk | FTP | other *** search
- /* 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
-