GetSize - FormList: Difference between revisions

Jump to navigation Jump to search
m
→‎Examples: Optimized example.
imported>Evernewjoy
imported>JustinOther
m (→‎Examples: Optimized example.)
Line 17: Line 17:


== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">FormList Property kFormList Auto
; Print out the forms in the list
 
FormList property list auto
Function ExampleFunction()
int index = 0
Int iIndex = kFormList.GetSize()
While (index < list.GetSize())
While iIndex > 0
  Debug.Trace("Form " + index + " is " + list.GetAt(index))
iIndex -= 1
  index = index + 1
Debug.Trace("Form " + iIndex + " is " + kFormList.GetAt(iIndex))
EndWhile
EndWhile
</source>
EndFunction</source>


== See Also ==
== See Also ==
Anonymous user

Navigation menu