Difference between revisions of "ListGetFormIndex"

443 bytes added ,  19:08, 1 July 2014
Clarified
imported>Prideslayer
m (Spaces between params only, not in param names.)
imported>Odessa
(Clarified)
 
Line 1: Line 1:
{{Function
{{Function
  |origin = FOSE1
  |origin = FOSE1
  |summary = Returns the index for the specified form
  |summary = Returns the index for the specified form if it is found exactly in the specified form list, otherwise returns constant -1 (not found).
  |name = ListGetFormIndex
  |name = ListGetFormIndex
  |returnType = int
  |returnType = int
Line 13: Line 13:
   }}
   }}
}}
}}
==Example==
<pre>
int iIndex
set iIndex to ListGetFormIndex GoodspringersList, SunnyREF
</pre>
==Notes==
*The first form in the list is at index 0, and the last is equal to ([[ListGetCount|ListGetCount - 1]]).
==See Also==
*[[IsInList]] (Checks for base objects only)
*[[IsRefInList]] (Indexes both exact and base/leveled matches)
*[[ListGetCount]]
[[Category:Functions_(FOSE)]] [[Category:List_Functions]]
[[Category:Functions_(FOSE)]] [[Category:List_Functions]]
Anonymous user