ArchiveVariables.ItemByIdEx



ItemByIdEx(vVariableId As Variant,vCalculation As Variant,vProjectName As Variant) As ArchiveVariable

Parameters

vVariableId As Variant
Uniqe PvID of linked zenOn Variable
vCalculation As Variant
Type of claculation as long
Calculation Types
vProjectName As Variant
Projectname as string
ED
not used
RT
read only

Remarks

Returns an object of type ArchiveFilterVariable.

Sample:


Sub GetArchiveVariable(zArchive As Archive)
Dim zVariable As Variable
Dim zArvVar As ArchiveVariable
	'get variable object to read the PvID!
	Set zVariable = thisProject.Variables.Item("WIZ_VAR_10")
	'get the archivevariable with SUM calculation
	Set zArvVar = zArchive.ArchiveVariables.ItemByIdEx(zVariable.PvID, thisProject.Name, 1)
End Sub

See Also

ArchiveVariables, ArchiveVariable