FindObjectEx
FindObjectEx(ObjectType AS Integer, ObjectId AS Integer, Param AS String/Integer[, Flags As Integer]) AS Integer
Searches for the object specified by the parameter <Param>. This parameter can specify the name of the object to search (type string and <ObjectType> defined as below) or any other object attribute. If the object is found, its ID is returned in <ObjectId>.
The type of the searched object depends on the input value of <ObjectType>. For searches by name, this value can be:
- 0 = tag object
- 2 = user object
- 3 = call group object
- 4 = alarm group object
- 5 = communication driver object
- 6 = team object
- 10 = station object
- 26 = data server object
- 27 = scenario object
<ObjectType> can also specify another attribute. For example, to search the user having a specific numeric code id, make <ObjectType> = &h0200000D and specify the searched code in <Param> (numeric type).
The optional parameter <Flags> (0 by default) can specify the call group ID when a team is searched.
Returns an error code (0 if object found).