FindString Case BUG?

Just starting out? Need help? Post your questions and find answers here.
arma
User
User
Posts: 57
Joined: Sun Jul 24, 2016 11:54 pm

FindString Case BUG?

Post by arma »

Hello Everybody,
I am confused if this is BUG or NOT...
Is this code works normally? Or how "#PB_String_NoCase" works?
I did think #PB_String_NoCase means it finds the same string (dont care capital or not as case) But it doesnt do that...
If this is BUG Please fix this on the future release! If this is NOT BUG then what does this do?

My Sample Code:
a$="TEST.Server":m$="server"
Debug FindString(a$,m$,#PB_String_CaseSensitive)
Debug FindString(a$,m$,#PB_String_NoCase)

Thanks A LOT!
User avatar
kenmo
Addict
Addict
Posts: 1967
Joined: Tue Dec 23, 2003 3:54 am

Re: FindString Case BUG?

Post by kenmo »

You're putting those flags in the "StartPosition" argument.

Use:

Code: Select all

a$="TEST.Server":m$="server"
Debug FindString(a$,m$,1,#PB_String_CaseSensitive)
Debug FindString(a$,m$,1,#PB_String_NoCase)
Post Reply