Get-Number-of-Column
Command Description
Get column number from the table object and return number
Command Prototype
iRet = Mage.ExtractSingleTableColNum(objTableData)
Parameter Description
Parameter | Required | Type | Default | Description |
---|---|---|---|---|
objTableData | True | expression | objTableData | Use the "Get Specified Table" command to output variable or the "Get All Tables" command to specify the variable of the table index (for example: arrayRet[1], which means the table index is 2) |
return
iRet,The variable used to save the output of the command.
Demo
Dim objTableData='' // Table object, use the variable output by the "Get Specified Table" command or the variable of the table index specified by the "Get All Tables" command (for example: arrayRet[1], indicating that the table index is 2 form)
TracePrint "--------------------Get the number of table columns--------------------"
// --------------------------------------------------------
// [Remarks] Get the number of table columns
// Input parameters:
// objTableData--table object
// Output parameters:
// iRet: The variable to which the output of the function call is saved
// Command prototype: iRet = Mage.ExtractSingleTableColNum(objTableData)
// --------------------------------------------------------
iRet Mage.ExtractSingleTableColNum(objTableData)
TracePrint(iRet)