ArchiveVariable

 

Remarks Properties Methods Samples

ED
not used
RT
avaliable

Remarks:Top

This object is an archive variable containing the projecting information. "ArchiveVariable" objects are assigned to "Archive" objects.

Properties:Top

Calculation ID LongText
Name Parent SourceVariable
Unit    

Methods:Top

Variable    

Samples:Top

Sub zenOn_ArchiveVariable(ByRef zArchive As Archive)
	'Declarations
	Dim zArvVar As ArchiveVariable

	'Initialize zArvVar with the first available archive variable within the collection
	Set zArvVar = zArchive.ArchiveVariables.Item(0)

	'If no archive variable is available ...
	If zArvVar Is Nothing Then
		'... then inform the user
		MsgBox ("No archive variable available!")

	'Otherwise, output some details
	Else
		'Output the name of the assigned variable
		Debug.Print "Name: " & zArvVar.Name
		'Output the ID
		Debug.Print "ID: " & zArvVar.ID
		'Output the utilized unit
		Debug.Print "Unit: " & zArvVar.Unit
		'Output the utilized calculation mode, if it is a following archive
		Debug.Print "Calculation mode: " & zArvVar.Calculation
	End If
End Sub