Skip to main content
Version: v4 (Stable)

SetObjectStation

SetObjectStation(nObjectType AS Integer, StationId As String/Integer, nObjectId As Integer[, sObjectName As String[, OriginStationId As String/Integer]]) As Integer

Assigns an object (variable, call group, tag group or user) to the station <StationId> (referenced either by its numeric Id or by its name).

The <nObjectType> parameter defines the type of the object:

  • 0 = tag
  • 1 = call group
  • 2 = tag group
  • 3 = user

If the value of the <nObjectId> parameter is 0, Alert uses the name of the object defined by <sObjectName> instead of its ID.

The optional <OriginStationId> parameter identifies the name <sObjectName> if it exists on more than one station.

Returns an error code (0 if no error).