It is currently Fri Dec 06, 2019 9:16 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: FindString Case BUG?
PostPosted: Thu Jun 06, 2019 1:52 pm 
Offline
User
User

Joined: Sun Jul 24, 2016 11:54 pm
Posts: 38
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!


Top
 Profile  
Reply with quote  
 Post subject: Re: FindString Case BUG?
PostPosted: Thu Jun 06, 2019 1:59 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Dec 23, 2003 3:54 am
Posts: 1679
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)

_________________
On GitHub: PB Includes - IDE Tools - Color Themes


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye