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 list auto
int index = 0
While (index < list.GetSize())
  Debug.Trace("Form " + index + " is " + list.GetAt(index))
  index = index + 1
EndWhile

See Also