Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Matrix.GetColumnName

Queries column name.

Component Version macOS Windows Linux Server iOS SDK
Matrix 10.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Matrix.GetColumnName"; MatrixRef; Column )   More

Parameters

Parameter Description Example
MatrixRef The matrix reference number. $matrix
Column The zero based column number. 2

Result

Returns text or error.

Description

Queries column name.

Examples

Read the column names of a SQL result:

# query records into a matrix
Set Variable [ $matrix ; Value: MBS( "Matrix.NewWithSQL"; ""; "SELECT FirstName, LastName FROM Contacts" ) ]
# column names come from the SQL query
Set Variable [ $first ; Value: MBS( "Matrix.GetColumnName"; $matrix; 0 ) ]
Set Variable [ $second ; Value: MBS( "Matrix.GetColumnName"; $matrix; 1 ) ]
Set Variable [ $r ; Value: MBS( "Matrix.Release"; $matrix ) ]

See also

Blog Entries

This function checks for a license.

Created 2nd April 2020, last changed 6th November 2026


Matrix.GetColumn - Matrix.GetColumnNames


MarkDown version: MatrixGetColumnName.md