GetLength - StringUtil

From the CreationKit Wiki
Jump to navigation Jump to search

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

See Also[edit | edit source]