Spreadsheet.VData

This property returns/sets a variable vector as an array of doubles.

Syntax Parameters Return Value
Property Spreadsheet.VData( _
    VarNo As Long) As Double()
VarNo [in]

The variable index.

Type: Long

Double()

SVB Example

Retrieving and copy variable data:

Option Base 1
Option Explicit
Sub Main
    'create a spreadsheet to display the variable's data
    Dim spr2 As New Spreadsheet
    spr2.SetSize(ActiveSpreadsheet.NumberOfCases, 1)
    'Get variable 2's data from the first spreadsheet
    'and copy it to the new spreadsheet
    spr2.VData(1) = ActiveSpreadsheet.VData(2)
    spr2.Visible = True
End Sub