User Guide
477
OLE Automation Object Reference
WColumnDef
This is a single-column definition for a table.
VBScript Example (lines are numbered for clarity):
1. ' assume tblControl is assigned to the Control table
2. Dim coldef As WColumnDef
3. For Each coldef In tblControl.WColumnDefs
4. MsgBox coldef.Name
5. Next
6. ' get specific column
7. Set coldef = tblControl.WColumnDefs("Control")
8. Set coldef = tblControl.WColumnDefs(1)
WColumnDefs
This is a collection of column definitions for a table.
WColumns
This is a collection of columns for a row.
WFWI.Document
This is the main automation object that exposes resource addition functions, which are
AddFile, AddFileEx, AddRegistryValue, AddRegistryValueEx, AddShortcut,
AddShortcutEx, AddWildcard, GetComponentDirectory, and SetFileSelfRegister.
WRow
This is a single row for a particular table.
Child of WColumnDefs
Properties BSTR Name: name of the column
Child of WTables
Properties long Count: returns the number of columns in the table
Methods WColumnDef WColumnDef(VARIANT vIndex): returns a WColumnDef given the zero-
based index or the column name
Child of WRow
Properties long Count: returns the number of columns in the table
Methods WColumn WColumn(VARIANT vIndex): returns a WColumn given the zero-based index
or the column Name
Methods WTables WTables(): returns the collection of tables in the WTables object