StationSetPriorityV - method of the AtouchX object
Description:
Sets the priority for the connection to the station.
The method sets a new priority value for the connection to the Station.
If applies the method to the station connected by a fixed line, then nothing is done and the method returns the error code "OK".
If the method is applied to the modem-connected station, then the priority value is remembered and is further used as additional information when establishing a connection to the station. According to the set modem priorities and the current station priorities, the communication core selects the appropriate modem to establish the connection.
If the application uses only one modem, then working with priorities is not practical.
Syntax:
Integer StationSetPriorityV(Integer Station, Long Priority, Variant OldPriority)
Parameters:
Station | (Integer) Number of the station to set the new priority value for the connection. |
Priority | (Long) New priority value for connection to Station. |
OldPriority | (Variant) Variable where the old priority value is stored. |
---|
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oATC = pMe.Pm("/AtouchApp").Acx;
var nInfo = oATC.StationSetPriorityV(2, 3, 2);
Dim oATC, nInfo
Set oATC = pMe.Pm("/AtouchApp").Acx
nInfo = oATC.StationSetPriorityV(2, 3, 2)