GetParameterCount Method

Description

Returns the total number of parameters (columns) in the run-time Data pane sheet.

Syntax

DTSheet.GetParameterCount

Return Value

Number

Example

The following example uses the GetParameterCount method to find the total number of parameters (columns) in the run-time Data pane sheet (MySheet) and writes it to the report.

paramcount = DataTable.GetSheet("MySheet").GetParameterCount

Reporter.ReportEvent 2, "There are " &paramcount, "columns in the data sheet."