GetSize - FormList

From Creation Kit
Jump to: navigation, search

Member of: FormList Script

Returns the number of items in the list.

Syntax

int Function GetSize() native

Parameters

None

Return Value

Returns the number of forms in the list

Examples

  • 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