GetLength - StringUtil

From Creation Kit
Jump to: navigation, search

SKSE Member of: StringUtil Script

Returns the length of the passed string. (This function requires SKSE)

Syntax

Int Function GetLength(string str) native

Parameters

  • str: The string to return the length of.

Return Value

  • The length of the string.

Examples

; 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

None

See Also