BASE STATION OBJECT
75
6
6.2 METHODS
METHOD ALIVE
PURPOSE
Calls a base station.
DESCRIPTION
This method calls a base station to know if it is alive or not. When sending an alive
command to a base station present and operating in the network, it will answer with a
particular string. This command is totally asynchronous and managed through a
secondary thread which causes the STAR-Link™ ActiveX to answer with an event
called AliveEvent containing the base station string information.
If the Alive command is not right, the control sends an error event.
IDL
[id(21), helpstring("method Alive")] HRESULT Alive();
INPUT PARAMETERS
None
OUTPUT VALUE
None
POSSIBLE VALUES
None
EXAMPLE
...
Dim SatObject as Sat
...
‘Asking if base station is Alive
Set SatObject = RFNCCTL.Satellites.Satellite(1500)
SatObject.Alive
...
‘
‘ Alive Event Handler
‘
Private Sub RFNCCTL_AliveEvent(ByVal SatID As Integer, ByVal
Info As String)
MsgBox Info, vbExclamation, "Satellite : " & CStr(SatID)
End Sub
Commentaires sur ces manuels