HistoricalDataRequested event

This event, along with the LoadHistoricalData method, is used for providing historical data to the trend.
Occurs when a Trend object requests historical data for a range of time. The user-written code supplies the historical data by calling the LoadHistoricalData method. If the user's code will process the transaction, it must set the WillProcess flag to True.
Syntax
Trend
_
HistoricalDataRequested
(
ByVal
TransactionId
As Long
,
ByVal
StartTime
As Date
,
ByVal
StartTimeMS
As Long
,
ByVal
EndTime
As Date
,
ByVal
EndTimeMS
As Long
,
ByVal
ArrayOfPenIndex
As Variant
,
WillProcess
As Boolean
)
where
Trend
- is the name of a Trend object (such as trend1) or an expression that evaluates to a Trend object.
TransactionID
- is a transaction identifier that must be passed to LoadHistoricalData method.
StartTime
- is the start time and date for the requested historical data.
StartTimeMS
- is the millisecond offset from StartTime for the requested data.
EndTime
- is the end time and date for the requested historical data.
EndTimeMS
- is the millisecond offset from EndTime for the requested data.
ArrayOfPenIndex
- is a string array that contains names of the pens for which historical data is being requested. The trend uses this array to allow there user's code to only supply the historical data for the pens that are visible.
WillProcess
- indicates if the user's code will process the transaction. If set to True, the trend will wait for user's code to provide the requested data.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal