WoW:API strchar: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Use Lua/Libshortcut template. Change category from "LUA Functions" to "Lua functions".)
({{luaapi}})
Line 1: Line 1:
{{:Lua/Libshortcut|strchar|string.char}}
{{luaapi}}
string.char(i1, i2, ...)
 
Generate a string representing the character codes passed as arguments. Numerical codes are not necessarily portable across platforms.
Generate a string representing the character codes passed as arguments. Numerical codes are not necessarily portable across platforms.
s = string.char(i1, i2, ...)
s = strchar(i1, i2, ...)


== Examples ==
  > = string.char(65,66,67)
  > = string.char(65,66,67)
  ABC
  ABC
  > = string.char()  -- empty string
  > = string.char()  -- empty string
 
""
{{LUA}}

Revision as of 22:39, 25 March 2010

WoW Lua

Generate a string representing the character codes passed as arguments. Numerical codes are not necessarily portable across platforms.

s = string.char(i1, i2, ...)
s = strchar(i1, i2, ...)

Examples

> = string.char(65,66,67)
ABC
> = string.char()  -- empty string
""