GefObjectVariable.GetValueAsNumber (method)

Gets the value of the variable as a floating point number.
Syntax: double = object.GetValueAsNumber ( )
Description: This method may be slightly faster than using the Value property.

Example:

Sub GefObjectVariable_GetValueAsNumber()
    
    Dim oCimObj As GefObject
    Dim oCimObjVars As GefObjectVariables
    Dim oCimObjVar As GefObjectVariable
    Dim nI As Integer
    
    Set oCimObj = CimGetObject
    Set oCimObjVars = oCimObj.Variables
    For nI = 0 To oCimObjVars.Count - 1
        Set oCimObjVar = oCimObjVars.Item(nI)
        MsgBox "The numeric evaluation of " & _
            """" & oCimObjVar.Value & """" & " is " & _
            oCimObjVar.GetValueAsNumber
    Next nI
    
End Sub