GetSize - FormList

From the CreationKit Wiki
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]