string.char

From GMod Wiki

Jump to: navigation, search
Function
Syntax string.char( Integer i1, Integer i2, Integer i3, ... )
Where is this used?
Description:
Return a string of the equivalent characters for the numeric parameters.
Returns: String
Part of Library: String
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=String.char]String.char [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionDemonstrates the string.char function converting from ASCII code to a string
Used onNewerShared.png
Code
print(string.char(65))
print(string.char(65, 66, 67))
OutputA
ABC


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox