IDispatch.GetIDofName

From Xojo Documentation

Method

IDispatch.GetIDofName(name As String) As Integer

Supported for all project types and targets.

Gets a single DISPID (which can be used on calls to Invoke) from the specified name. If the name cannot be found this function returns -1.