DaTommyboY
Programmer
Hello everybody,
I have a filelistbox on my form which is filled with files, nothing weird sofar. What i like to do is get the name of the first file in the filelistbox and compair it with another string. If the match, take the next file from the filelistbox and compair it again, till a difference is found!!
I was thinking about something like this, but it dont work
Dim QQ, RR as integer
Dim TT as sting
RR = filelistbox.listcount
TT = JustAStringToCompair
for QQ = 1 to RR
if filelistbox.index(RR) = TT
next QQ
else
Do something else
exit for
end if
the command filelistbox.index() or filelistbox.tabindex() wont do what I expected him to do!!!
Can somebody help me
Thanks many many times
****** Tractor Pulling ******
The most powerfull motorsport
in the world!!!
I have a filelistbox on my form which is filled with files, nothing weird sofar. What i like to do is get the name of the first file in the filelistbox and compair it with another string. If the match, take the next file from the filelistbox and compair it again, till a difference is found!!
I was thinking about something like this, but it dont work
Dim QQ, RR as integer
Dim TT as sting
RR = filelistbox.listcount
TT = JustAStringToCompair
for QQ = 1 to RR
if filelistbox.index(RR) = TT
next QQ
else
Do something else
exit for
end if
the command filelistbox.index() or filelistbox.tabindex() wont do what I expected him to do!!!
Can somebody help me
Thanks many many times
****** Tractor Pulling ******
The most powerfull motorsport
in the world!!!