str_findfirst problems

jackslade

27-07-2007 01:30:42

I can't seem to get this function to work properly. It seems to find my search string no matter what i pass in.

e.g. when searching the name of a file as the first parameter and "life" as the second I get these results.

owner of a lonely heart.mp3, Index=3
01 drifting.mp3, Index=5
02 millennium changed.mp3, Index=4
03 radio song girl.mp3, Index=6
04 rock star land.mp3, Index=13


these don't make any sense, the search string "life" isn't even in these.

anybody have the same problem? is this a bug?

jackslade

27-07-2007 06:26:44

fyi, it looks like it only works to find a single character in the search string.