AddSheet Method

Description

Adds the specified sheet to the design-time or run-time data table and returns the sheet so that you can directly set properties of the new sheet in the same statement.

Syntax

DataTable.AddSheet SheetName

Argument

Type

Description

SheetName
String
Assigns a name to the new sheet.

Return Value

DTSheet Object.

Example

The following example uses the AddSheet method to create the new sheet, "MySheet" in the design-time or run-time data table and then adds a parameter to the new sheet.

Variable=DataTable.AddSheet ("MySheet").AddParameter("Time", "8:00")