string.TrimRight

From GMod Wiki

Revision as of 00:09, 13 October 2009 by Jamie Sharpe (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax string.TrimRight( String string [, String char] )
Where is this used?
Description:
Removes ending white spaces from a string.
Returns: String
Part of Library: String
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=String.TrimRight]String.TrimRight [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Example

DescriptionTrims the white space off the right side of the string.
Used onNewerShared.png
Code
print( string.TrimRight("          Test         ") )
Output"          Test"


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox