Finding element in list and getting offset
Posted: Wed Feb 18, 2015 5:41 am
I'm searching a list for a matching element. I see that there is syntax for determining if an element is found in a list, but no syntax that returns the element number of the element in the list. Does the syntax exist and I just don't see it documented? Or is this an oversight? Or is it not really needed?
Here is my workaround:
Here is my workaround:
Code: Select all
variable tElement as string
repeat with tElement from 1 up to the number of elements in mTags
if pTag is element tElement of mTags then
put tElement into mSelected
exit repeat
end if
end repeat