Ticker: Callback (let)

Callback

Sets the callback address of the function to be used by the Ticker object.



 Public Property Let Callback(
	  ByVal RHS As Long )

Parameters

RHS
[ByVal] Long. The address of the callback function. Setting this to zero will stop the callback.

Remarks

A callback method is used to allow a Ticker object to notify the function without having to use an Event. A function callback must have the following signature, or the application may crash.

 Public Sub TickerCallback(ByRef Ticker As Ticker, ByRef Data As Variant)
     ' do stuff
 End Sub
 
The two parameters must be declared as ByRef.

Read/Write.

See Also

Project VBCorLib Overview Class Ticker Overview Ticker Properties Ticker Methods Callback (get) Data (get)