Gets the GefObjectEvent for the specified event type. | |
Syntax: | Set GefObjectEvent = object.GetPeriodic ( Period_ms, Create ) |
Parameters: |
Period_ms As
long -
Optional Create As Boolean
- If specified as True, an event of this type will be
created if one does not already exist. The default is
False.
|
Description: | The GetPeriodic method gets or creates a
periodic event. The Period_ms parameter indicates which
periodic event is being used. Example: Sub GefObjectEvents_GetPeriodic() Dim oCimObj As GefObject Dim oCimObjEvnts As
GefObjectEvents Dim oCimObjEvnt As
GefObjectEvent Set oCimObj = CimGetObject Set oCimObjEvnts =
oCimObj.Events Set oCimObjEvnt =
oCimObjEvnts.GetPeriodic(10) If Not oCimObjEvnt Is Nothing
Then MsgBox "The
event will be triggered every " & _ oCimObjEvnt.PeriodicTimeMS
& "ms" Else MsgBox "There
are no periodic events configured for 10ms" End If End Sub |