Get-Number-of-Table-Row
Command Description
Get row numbers from the table object and return number
Command Prototype
iRet = Mage.ExtractSingleTableRowNum(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 table row count--------------------"
// --------------------------------------------------------
// [Remarks] Get the number of table rows
// Input parameters:
// objTableData--table object
// Output parameters:
// iRet: The variable to which the output of the function call is saved
// Command prototype: iRet = Mage.ExtractSingleTableRowNum(objTableData)
// --------------------------------------------------------
iRet = Mage.ExtractSingleTableRowNum(objTableData)
TracePrint(iRet)