string.upper

From GMod Wiki

Revision as of 11:01, 30 May 2011 by RTM xBEASTx (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax string.upper( String string )
Where is this used?
Description:
Makes every character uppercase in a string.
Returns: String \ All characters uppercase.
Part of Library: String
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=String.upper]String.upper [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionMakes every character uppercase in a string.
Used onNewerShared.png
Code
 
local string = "all of this is small"
local large -- ignore this
Msg(atring)
-- Outputs: all of this is small
large = string.upper(string)
Msg(large)
-- Output: ALL OF THIS IS SMALL
 
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox