HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Possible to convert string case?

07-11-2006, 09:22 PM#1
The_AwaKening
I'm looking for a way to set a variable string array for all player names, but make them lower case.

set Name[1] = GetPlayerName(Player(0))

Then I am using another function to detect a chat string and match it to that variable, which means I would also want it to convert that chat string to all lower case. Kind of like in vb you would type LCase(msg)
07-11-2006, 09:25 PM#2
Rising_Dusk
Collapse JASS:
native StringCase takes string source, boolean upper returns string
Never tried it, but there ya' go.
07-12-2006, 03:17 AM#3
The_AwaKening
Ah yes, I found that function right after I posted. Guess I should have looked al ittle deeper first, but thanks. And for your reference, it works great, I already tested it.