VariableMetaData Object

Use the VariableMetaData object to manage Verastream model variable metadata.

Click a method to see more information on its use, syntax, and parameters:

DefaultValue Property

Used to get the default value of a Verastream model variable.

Syntax

object.DefaultValue

Part Description
object A variable metadata object

Remarks

Use the DefaultValue property to get the default value of a Verastream model variable.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strVariableName As String
Dim objVariableMetaData As VariableMetaData

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strVariableName = "cursorPosition"
Set objVariableMetaData = 
Verastream_Session.GetVariableMetaData(strVariableName) 
MsgBox ("Variable metadata description is " & objVariableMetaData.Description)

Verastream_Session.Disconnect
Set objVariableMetaData = Nothing
Set Verastream_Session = Nothing

Description Property

Used to get the description of a Verastream model variable.

Syntax

object.Description

Part Description
object A variable metadata object

Remarks

Use the Description property to get the description of a Verastream model Verastream model variable.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strVariableName As String
Dim objVariableMetaData As VariableMetaData

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strVariableName = "cursorPosition"
Set objVariableMetaData = Verastream_Session.GetVariableMetaData(strVariableName)
MsgBox ("Variable metadata description value is " & objVariableMetaData.Description)

Verastream_Session.Disconnect
Set objVariableMetaData = Nothing
Set Verastream_Session = Nothing

Initialization Property

Used to get the type initialization of the Verastream model variable.

Syntax

object.Initialization

Part Description
object A variable metadata object

Remarks

Use the Initialization property to get the initialization type of a Verastream model variable. The enumeration values for AppConnInitialization are defined in the Type Library.
Initialization
AtConnection
ByDefault
WhenEncountered

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strVariableName As String
Dim objVariableMetaData As VariableMetaData

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strVariableName = "cursorPosition"
Set objVariableMetaData = Verastream_Session.GetVariableMetaData(strVariableName)
MsgBox ("Variable metadata initialization is " & objVariableMetaData.Initialization)

Verastream_Session.Disconnect
Set objVariableMetaData = Nothing
Set Verastream_Session = Nothing

IsEncrypted Property

Used to get the encrypted flag of the Verastream model variable.

Syntax

object.IsEncrypted

Part Description
object A variable metadata object

Remarks

Use the IsEncrypted property to get the encrypted flag of a Verastream model variable.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strVariableName As String
Dim objVariableMetaData As VariableMetaData

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strVariableName = "cursorPosition"
Set objVariableMetaData = Verastream_Session.GetVariableMetaData(strVariableName)
MsgBox ("Variable metadata IsEncrypted is " & objVariableMetaData.IsEncrypted)

Verastream_Session.Disconnect
Set objVariableMetaData = Nothing
Set Verastream_Session = Nothing

IsHidden Property

Used to get the hidden flag of the Verastream model variable.

Syntax

object.IsHidden

Part Description
object A variable metadata object

Remarks

Use the IsHidden property to get the hidden flag of a Verastream model variable.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strVariableName As String
Dim objVariableMetaData As VariableMetaData

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strVariableName = "cursorPosition"
Set objVariableMetaData = Verastream_Session.GetVariableMetaData(strVariableName)
MsgBox ("Variable metadata IsHidden is " & objVariableMetaData.IsHidden)

Verastream_Session.Disconnect
Set objVariableMetaData = Nothing
Set Verastream_Session = Nothing

IsReadable Property

Used to get the readable flag of the Verastream model variable.

Syntax

object.IsReadable

Part Description
object A variable metadata object

Remarks

Use the IsReadable property to get the readable flag of a Verastream model variable.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strVariableName As String
Dim objVariableMetaData As VariableMetaData

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strVariableName = "cursorPosition"
Set objVariableMetaData = Verastream_Session.GetVariableMetaData(strVariableName)
MsgBox ("Variable metadata IsReadable is " & objVariableMetaData.IsReadable)

Verastream_Session.Disconnect
Set objVariableMetaData = Nothing
Set Verastream_Session = Nothing

IsWriteable Property

Return a flag indicating whether the Verastream model variable is writeable.

Syntax

object.IsWriteable
Part Description
object A variable metadata object

Remarks

Use the IsWriteable property to get the writeable flag of a Verastream model variable.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strVariableName As String
Dim objVariableMetaData As VariableMetaData

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strVariableName = "cursorPosition"
Set objVariableMetaData = Verastream_Session.GetVariableMetaData(strVariableName)
MsgBox ("Variable metadata IsWriteable is " & objVariableMetaData.IsWriteable)

Verastream_Session.Disconnect
Set objVariableMetaData = Nothing
Set Verastream_Session = Nothing

MetaDataType Property

Used to get the metadata type of the Verastream model variable.

Syntax

object.MetaDataType

Part Description
object A variable metadata object

Remarks

Use the MetaDataType property to get the type of metadata within a Verastream table. The enumeration values for AppConnMetaDataType are defined in the Type Library.

Metadata Types
AttributeMeta
OperationMeta
RecordSetMeta
FieldMeta
VariableMeta
TableMeta
ColumnMeta
ProcedureMeta

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strVariableName As String
Dim objVariableMetaData As VariableMetaData

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strVariableName = "cursorPosition"
Set objVariableMetaData = Verastream_Session.GetVariableMetaData(strVariableName)
MsgBox ("Variable metadata meta data type is " & objVariableMetaData.MetaDataType)

Verastream_Session.Disconnect
Set objVariableMetaData = Nothing
Set Verastream_Session = Nothing

Name Property

Used to get the name of a Verastream model variable.

Syntax

object.Name

Part Description
object A variable metadata object

Remarks

Use the DefaultValue property to get the name of a Verastream model variable.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strVariableName As String
Dim objVariableMetaData As VariableMetaData

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strVariableName = "cursorPosition"
Set objVariableMetaData = Verastream_Session.GetVariableMetaData(strVariableName)
MsgBox ("Variable metadata name is " & objVariableMetaData.Name)

Verastream_Session.Disconnect
Set objVariableMetaData = Nothing
Set Verastream_Session = Nothing

VariableType Property

Used to get the type of the Verastream model variable.

Syntax

object.VariableType

Part Description
object A variable metadata object

Remarks

Use the VariableType property to get the type of the Verastream model variable.

Example

Dim Verastream_Session As AppConnModel
Dim strModelName, strServerName, strVariableName As String
Dim objVariableMetaData As VariableMetaData

strModelName = "CCSDemo"
strServerName = "localhost"
Set Verastream_Session = New AppConnModel
Verastream_Session.ConnectToModel strServerName, strModelName

strVariableName = "cursorPosition"
Set objVariableMetaData = Verastream_Session.GetVariableMetaData(strVariableName)
MsgBox ("Variable metadata variable type is " & objVariableMetaData.VariableType)

Verastream_Session.Disconnect
Set objVariableMetaData = Nothing
Set Verastream_Session = Nothing

 

 

  Attachmate