PureBasic Forum
http://forums.purebasic.com/english/

FindString Case BUG?
http://forums.purebasic.com/english/viewtopic.php?f=13&t=73158
Page 1 of 1

Author:  arma [ Thu Jun 06, 2019 1:52 pm ]
Post subject:  FindString Case BUG?

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!

Author:  kenmo [ Thu Jun 06, 2019 1:59 pm ]
Post subject:  Re: FindString Case BUG?

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

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

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/