GetSheet Method GetSheet 方法
Description 描述
Returns the specified sheet from the run-time Data Table. 返回运行的sheet
Syntax 语法
DataTable.GetSheet(SheetID)
Argument | Type | Description |
---|---|---|
SheetID
|
Variant
|
Identifies the sheet to be returned. The Sheet ID can be the sheet name or index. Index values begin with 1.
|
Return Value 返回值
Example
The following example uses the GetSheet method to return the "MySheet" sheet of the run-time Data Table in order to add a parameter to it. 下面的例子描述如何使用GetSheet方法。
MyParam=DataTable.GetSheet ("MySheet").AddParameter("Time", "8:00")
You can also use this to add a parameter to the "MySheet" local sheet (note that no value is returned).
DataTable.GetSheet ("MySheet").AddParameter "Time", "8:00"