WoW:API strbyte

Revision as of 05:56, 4 January 2006 by WoWWiki>Muert
string.byte(s [, i])

Return the numerical code the i-th character of the string passed.

> = string.byte("ABCDE")      -- no index, so the first character
65
> = string.byte("ABCDE",1)    -- indexes start at 1
65
> = string.byte("ABCDE",0)    -- we're not using C
> = string.byte("ABCDE",100)  -- index out of range, no value returned



Template:WoW API