Code: Select all
txt$ = "what-the-foo"
count = FindString(txt$,"-")
Debug countCode: Select all
txt$ = "Iiiii-like-purebasic"
count = FindString(txt$,"-")
Debug countError seems to be in first string part:
Code: Select all
txt$ = "w-the-foo"
count = FindString(txt$,"-")
Debug countCode: Select all
txt$ = "I-like-purebasic"
count = FindString(txt$,"-")
Debug count
Cheers



