Caveats
CK Wiki - Notes
- Using Find as a condition for an IF check will still return as TRUE if the value returns -1 for not having the form on the formlist. The IF check will require a != -1 in order to fail the check ex: if MyFormList.Find(MyForm) != -1
Parameters
Examples
Int iIndex = PotionFLST.Find(WhiteRussianALCH)
If iIndex == - 1
Debug.Trace("WhiteRussianALCH is not a member of the PotionFLST.")
Else
Debug.Trace("WhiteRussianALCH is a member of the PotionFLST and its index is " + iIndex + ".")
EndIfAuto-Generated Example
Form myForm__apForm
int returnedValue = myFormList__toCallFunctionOn.Find(myForm__apForm)Related Pages
- FormList
- FormList.HasForm(...)
- FormList.RemoveAddedForm(...)
- FormList.Revert()
- Searching Arrays
