StationReserve - method of the AtouchX object
Description:
Sets or cancels the reservation of the HW resources for connection to the station.
The method reserves or unreserves a HW resources (modem) for connection to the
Station. The reservation is seen as a recommendation only.
If the method is applied to a station connected by a fixed line, then nothing is done and the method returns the error code "OK".
A reservation can be cancelled at any time. Setting and cancelling a reservation is not cumulative, i.e. a double reservation of the same station has the same effect as a single reservation. A single "cancel" method call is sufficient to cancel a double reservation.
Syntax:
Integer StationReserve(Integer Station, Boolean Set)
Parameters:
Station | (Integer) Number of the station for which the reservation is to be created or cancelled. |
Set | (Boolean) Flag whether to set or cancel the reservation.
true - The reservation is set.
false - The reservation is cancelled. |
---|
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oATC = pMe.Pm("/AtouchApp").Acx;
var nInfo = oATC.StationReserve(2, 60);
Dim oATC
Set oATC = pMe.Pm("/AtouchApp").Acx
Dim nInfo
nInfo = oATC.StationReserve(2, 60)