Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find string-line in multi-line string
#1
I wrote the following code to find a line with a certain string content in a multi-line string. It works.

Member function str.getLine
Code:
Copy      Help
function str'strLine
str s
int i
foreach s this
,if StrCompare(s strLine)=0; ret i
,i=i+1
ret -1

Nevertheless, I wonder whether there exists already something that I miss.

Thanks in advance.
#2
Does not exist. This function is the best way to find/get a line.


Forum Jump:


Users browsing this thread: 1 Guest(s)