HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

String Length

07-28-2002, 02:36 AM#1
Guest
Anyone know of a way (using triggers) to get a string's length? I've looked around but after no success I'm turning to you guys for help. Any help is greatly appreciated =)

-Kain
07-28-2002, 11:16 AM#2
BlacKDicK
From blizzard.j:
//===========================================================================
// The parameters for the API Substring function are unintuitive, so this
// merely performs a translation for the starting index.
//
function SubStringBJ takes string source, integer start, integer end returns string
return SubString(source, start-1, end)
endfunction


You can create a temporary string array and start addin every single char to it till you get a null/empty char.