Search found 2 matches

by troof
Tue Dec 10, 2024 10:10 pm
Forum: Coding Questions
Topic: [6.12 LTS - Win x64] FindString() - False Result
Replies: 7
Views: 926

Re: [6.12 LTS - Win x64] FindString() - False Result

Sorry, I confused CountString with FindString. :D
I have problems to switch between programming in javascript and purebasic.
it's too different - and i'm getting old.
by troof
Tue Dec 10, 2024 9:57 pm
Forum: Coding Questions
Topic: [6.12 LTS - Win x64] FindString() - False Result
Replies: 7
Views: 926

[6.12 LTS - Win x64] FindString() - False Result

txt$ = "what-the-foo"
count = FindString(txt$,"-")
Debug count
Result = 5 [false]
txt$ = "Iiiii-like-purebasic"
count = FindString(txt$,"-")
Debug count
Result = 6 [false]

Error seems to be in first string part:
txt$ = "w-the-foo"
count = FindString(txt$,"-")
Debug count
Result = 2 [true ...