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

Matrix.SetRowName

Sets row name.

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

Parameters

Parameter Description Example
MatrixRef The matrix reference number. $matrix
Row The row you like to get. 1
Name The new name. $uuid

Result

Returns OK or error.

Description

Sets row name.
This is a value associated with the row. e.g. associate an UUID with the row.
Whenever you need to provide row index, you can also pass row name.

Examples

Try the Row names:

Set Variable [ $matrix ; Value: MBS("Matrix.New"; 5; 6) ]
# name Rows
Set Variable [ $r ; Value: MBS("Matrix.SetRowName"; $matrix; 0; "First Name") ]
Set Variable [ $r ; Value: MBS("Matrix.SetRowName"; $matrix; 1; "Last Name") ]
Set Variable [ $r ; Value: MBS("Matrix.SetRowName"; $matrix; 2; "City") ]
Set Variable [ $r ; Value: MBS("Matrix.SetRowName"; $matrix; 3; "Amount") ]
# show names
Show Custom Dialog [ "Row Names" ; MBS("Matrix.GetRowNames"; $matrix) ]
# free
Set Variable [ $r ; Value: MBS("Matrix.Release"; $matrix) ]

See also

Release notes

Blog Entries

This function checks for a license.

Created 2nd April 2020, last changed 2nd November 2020


Matrix.SetRow - Matrix.SetRowNames