LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.
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?
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
Yes you are correct that it doesn't currently exist - we probably should add it for consistency with the other chunk offset functions. Your workaround is probably only marginally less efficient than using such a function though.