StringField() with NoCase detection

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5494
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

StringField() with NoCase detection

Post by Kwai chang caine »

Hello

Is it possible to have a NoCase detection like for FindString() ??

Code: Select all

a$ = "Hello i'm KCC for ever"
Debug "Left part = " + StringField(a$, 1, "KCC", #PB_String_NoCase)
Debug "Right part = " +  StringField(a$, 2, "kcc", #PB_String_NoCase)
Debugger wrote:Left part = Hello i'm
Right part = for ever
Thanks 8)
ImageThe happiness is a road...
Not a destination