Warcraft III resources & community, 2003–2006 · archived

Substrings

4 posts
#1

Substrings

Hey guys/gals can anyone explain to me how to work a substring correcly i dont understand can someone explain how each part works...please :?
(Substring(something, 1, 5)) Equal to <Empty String>
#2
Function "Substring" returns a part of pointed text, starting between X and Y characters:

Substring("TEXT", X, Y)

Example:

Following function will return a part of "Ogrimmar" string, between 2nd and 5th character (including both);

Substring("Ogrimmar", 2, 5)

returns orange:

Ogrimmar
#3
ty so much :)
#4
No problem ;)