WoW:API strbyte: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
> = string.byte("ABCDE",100) -- index out of range, no value returned | > = string.byte("ABCDE",100) -- index out of range, no value returned | ||
---- | |||
{{WoW API}} |
Revision as of 05:56, 4 January 2006
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