GetLength - StringUtil
Revision as of 12:12, 14 May 2012 by imported>Kahmul (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' StringUtil Script Returns the length of the passed string. (This function requires SKS...")
SKSE Member of: StringUtil Script
Returns the length of the passed string. (This function requires SKSE)
Syntax[edit | edit source]
Int Function GetLength(string str) native
Parameters[edit | edit source]
- str: The string to return the length of.
Return Value[edit | edit source]
- The length of the string.
Examples[edit | edit source]
; Obtains the length of "Hello, World!"
Int stringLength = getLength("Hello, World!")
Debug.MessageBox("The length of the given string is " + stringLength + ".")
; The length of the given string is 13.
Notes[edit | edit source]
None