Difference between revisions of "ListGetCount"

275 bytes removed ,  06:08, 24 March 2015
Tidied + added example/see also
imported>Geckbot
m (Robot: Automated text replacement (-\[\[Category:(.*?)Functions\]\] +Category:\1Functions\nCategory:\1Functions (GECK 1.0)))
imported>Odessa
(Tidied + added example/see also)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{Function
  |origin = FOSE1
  |origin = FOSE1
  |summary = Returns the size (number of forms) of a [[FormList]].
  |summary = Returns the count of items in the specified form list.
  |name = ListGetCount
  |name = ListGetCount
|returnVal = size
  |returnType = Count:int
  |returnType = int
  |arguments =  
  |arguments =
   {{FunctionArgument
   {{FunctionArgument
   |Name = FormListID
   |Name = Target
   |Type = ref
   |Type = formlist
   }}
   }}
|example = ListGetCount myFormList
}}
}}
==Example==
<pre>
int iCount


==Notes==
set iCount to ListGetCount AmmoList10mm ; * 3
*Useful when you need to loop through a [[FormList]]. See [[Scripting Tutorial: Working with FormLists]].
</pre>
 
==See Also==
==See Also==
*[[ListAddForm]]
*[[ListGetNthForm]]
*[[ListAddReference]]
*[[ListRemoveForm]]
*[[ListRemoveNthForm]]
*[[ListRemoveNthForm]]
*[[ListReplaceForm]]
*[[Ar_Size]] (equivalent for [[Array Variable|arrays]])
*[[ListReplaceNthForm]]
[[Category:Functions_(FOSE)]] [[Category:List_Functions]]
*[[ListGetNthForm]]
*[[ListGetFormIndex]]
*[[AddFormToFormList]]
*[[IsInList]]
*[[IsWeaponInList]]
 
[[Category:List Functions]]
[[Category:List Functions (GECK 1.0)]]
[[Category:Functions]]
[[Category:Functions (GECK 1.0)]]
Anonymous user