GetSize - FormList

From the CreationKit Wiki
Revision as of 07:38, 5 October 2012 by imported>JustinOther (→‎See Also: Fixed link to complete example scripts)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: FormList Script

Returns the number of items in the list.

Syntax[edit | edit source]

int Function GetSize() native

Parameters[edit | edit source]

None

Return Value[edit | edit source]

Returns the number of forms in the list

Examples[edit | edit source]

  • Print out the forms in the list:
FormList Property kFormList Auto

Function ExampleFunction()
	Int iIndex = kFormList.GetSize()
	While iIndex > 0
		iIndex -= 1
		Debug.Trace("Form " + iIndex + " is " + kFormList.GetAt(iIndex))
	EndWhile
EndFunction

See Also[edit | edit source]