Chapter 2 -- 116
Programmer’s Guide
"
""
" Variables.FreeVariables
Returns the F r eeVariables
collection that represents all the
created Free
variables in the document.
Access Read-Only.
Type VT_DISPATCH or FreeVariables
collection.
"
""
" Variables.TableLookups
Returns the TableLookups
collection that represents all the
created TableLookup
variables in the document.
Access Read-Only.
Type VT_DISPATCH or TableLookups
collection.
"
""
" Variables.Add
VTS_DISPATCH or Variable Add( VariableDataSource,
strVariableName).
Adds a new Variable
object to the current document.
Return value: Returns a Variable
object.
Parameters:
strVariableDataSource RequiredVT_I4orLong
. The data
source type of the variable to add.
Can be one of the following values (enumDatasource
type):
lppxDataSourceCounter = 1
lppxDataSourceTableLookup = 2
lppxDataSourceDate = 3
lppxDataSourceFormula = 4
lppxDataSourceFree = 5
lppxDataSourceForm = 6
lppxDataSourceDataBase = 7
strVariableName Optional VT_BSTR or String
.The
name of the variable to add.
Object
Methods