Hi again, Hugov
Yet another question about TF.ahk Lib
Is this misinterpreting the way this function works?
Code:
F = ScripletLibTitles.txt
Rows := LV_GetCount()
FoundRows := TF_Find(F, 1, Rows, SearchText, 0, 0)
Accroding to the Tf Tutorial, the Syntax for TF_Find is:
TF_Find(Text, StartLine = 1, EndLine = 0, SearchText = "", ReturnFirst = 1, ReturnText = 0)
In my script, I'm using ReturnFirst = 0 return multiple lines
and ReturnText = 0 return line numbers only
Does this mean?
1. the result of the search returns the total lines containing the SearchText OR
2. each line number containing the SearchText result.
When I run the script, if the SearchText is Blank.
It returns each line number separated by comma's.
for the total LV_GetCount value.
If the SearchText contains a String,
It returns the total lines containing the SearchText.
Is this the way it is supposed to work?
I'm trying to find each line number containing the search result
so I can save those line number values and use another routine to go to
each of the line numbers containing the SearchText like this.
Code:
Loop, parse, FoundRows, `,
{
RN := %A_LoopField% ; Rn = row number
LV_GetText(SearchText, RN, 1)
LV_Modify(RN, "Focus") ; Focus on Row with Search Text
LV_Modify(RN, "Select") ; Selects Row with Search Text
}
Can I use TF_Find to perform this method? If not,
can I modifiy TF_Find for my situation to get each line number?
Or is there another method for getting the line number values?
Thanks, for any help you can provide.
Have a Merry Christmas and Great New Year.

[/code]
_________________
"Man's quest for knowledge is an expanding series whose limit is infinity"