Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Matrix.SetColumnName
Sets column name.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Matrix | 10.2 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| MatrixRef | The matrix reference number. | $matrix |
| Column | The zero based column number. | 2 |
| Name | The new name. | "Company Name" |
Result
Returns OK or error.
Description
Sets column name.This is a value associated with the column. e.g. associate a field name with the column.
Whenever you need to provide column index, you can also pass column name.
Examples
Try the column names:
Set Variable [ $matrix ; Value: MBS("Matrix.New"; 5; 6) ]
# name columns
Set Variable [ $r ; Value: MBS("Matrix.SetColumnName"; $matrix; 0; "First Name") ]
Set Variable [ $r ; Value: MBS("Matrix.SetColumnName"; $matrix; 1; "Last Name") ]
Set Variable [ $r ; Value: MBS("Matrix.SetColumnName"; $matrix; 2; "City") ]
Set Variable [ $r ; Value: MBS("Matrix.SetColumnName"; $matrix; 3; "Amount") ]
# show names
Show Custom Dialog [ "Column Names" ; MBS("Matrix.GetColumnNames"; $matrix) ]
# free
Set Variable [ $r ; Value: MBS("Matrix.Release"; $matrix) ]
See also
- Matrix.GetColumn
- Matrix.GetColumnName
- Matrix.GetColumnNames
- Matrix.New
- Matrix.Release
- Matrix.SetColumn
- Matrix.SetRowName
Blog Entries
Created 2nd April 2020, last changed 2nd November 2020
Matrix.SetColumn - Matrix.SetRow
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins