Page 1 of 1

[Implemented] FindString needs a "Case" flag

Posted: Sat Aug 24, 2002 7:48 pm
by BackupUser
Restored from previous forum. Originally posted by PB.

So we can search with case sensitivity on or off. Thanks!


PB - Registered PureBasic Coder

Posted: Sat Aug 24, 2002 8:27 pm
by BackupUser
Restored from previous forum. Originally posted by Paul.

Nice idea, and for those who want a workaround for now...

Code: Select all

text.s="We will Search This Text Now"
 
;pos=FindString(text,"this",1)              ;normal case sensitive search
pos=FindString(UCase(text),UCase("this"),1) ;case insensitive search
 
If pos
  MessageRequester("Found",Mid(text,pos,Len(text)),0)
EndIf