Find - FormList
Member of: FormList Script
Searches for the specified form in the form list, returning its index (or a negative number if the form isn't found in the list)
SyntaxEdit
int Function Find(Form apForm) native
ParametersEdit
- apForm: Form to search for
Return ValueEdit
The index of the form in the form list. If the form isn't found, this number will be negative.
ExamplesEdit
; Find the diamond in the form list
int index = GemList.Find(Diamond)
if index < 0
Debug.Trace("Diamond doesn't exist in the form list!")
else
Debug.Trace("Diamond is in the form list at position " + location)
endIf