WebToolbar.ItemWithTag
From Xojo Documentation
New in 2020r1.1
Supported for all project types and targets.
Returns the WebToolbarItem whose tag matches the value passed.
Notes
If more than one WebToolbarItem has the same tag, the item with the lowest index and the matching tag is returned.
This method can be used when you don't want to rely upon the WebToolItem's index to retrieve it. For example, if you are going to be localizing the app into other languages, looping through the WebToolbarItems looking for a matching caption would be a poor choice. If you're going to be removing WebToolbarItems dynamically at runtime, using the index can be a poor choice because the higher indexes are renumbered when lower indexes are removed. You could remove them in order from highest to lowest to avoid this but it also doesn't make code that is very readable either. Using indexes also makes code that is difficult to maintain because adding new WebToolbarItems will change the indexes. This can all be avoided by assigning a unique value to the WebToolbarItem.Tag property each item you create one.
See Also
ItemAt method.