Skip to main content
Version: v6.5.0

Get-Table-Row

Command Description​

Gets the entire column information of the specified table from the table object and returns a one-dimensional array

Command Prototype​

arrayRet = Mage.ExtractSingleTableRow(objTableData,row)

Parameter Description​

ParameterRequiredTypeDefaultDescription
objTableDataTrueexpressionobjTableDataUse 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)
rowTruenumber1Specify the row number of the table object (starting from 1)

return​

arrayRet,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--------------------"
// --------------------------------------------------------
// [Remarks] Get the table row
// Input parameter 1:
// objTableData--table object
// Input parameter 2:
// row--row number

// Output parameters:
// arrayRet: The variable to which the output of the function call is saved

// Command prototype: arrayRet = Mage.ExtractSingleTableRow(objTableData,row)
// --------------------------------------------------------

arrayRet = Mage.ExtractSingleTableRow(objTableData,1)
TracePrint(arrayRet)