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
FM.SQL.Field
Queries field value for given position in result.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| FM FMSQL | 5.1 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| SQLref | The reference number returned by FM.SQL.Execute function. | $SQLRef |
| Row | The row number from 0 to FM.SQL.RowCount-1. | $row |
| Column | The column number from 0 to FM.SQL.FieldCount-1. | $col |
Result
Returns value or error.
Description
Queries field value for given position in result.Native data type is preserved so this function can returns styled text, number, time, date, timestamp and container.
Examples
Query field values:
Set Variable [$sql; Value:MBS( "FM.SQL.Execute"; ""; "select * from Clients")]
# query first field of first row:
Set Variable [$value; MBS( "FM.SQL.Field"; $sql; 0; 0 )
# query other field
Set Variable [$value; MBS( "FM.SQL.Field"; $sql; $row; $col )
Set Variable [$r; MBS( "FM.SQL.Release"; $sql )
See also
- FM.SQL.Execute
- FM.SQL.FieldCount
- FM.SQL.FieldType
- FM.SQL.Release
- FM.SQL.Text
- FM.SQL.XMLRecords
- Matrix.Evaluate
- Matrix.Text
- SQL.Execute
- SQL.FieldCount
Example Databases
- SQL in FileMaker/ImageGallery
- SQL in FileMaker/SQL Select Container
- SQL to other databases/SQL Export
Blog Entries
- FileMaker records to XML or JSON
- Image Gallery in FileMaker using SQL
- FileMaker Custom function to query a value from other table or file
- MBS FileMaker Plugin, version 6.0pr6
- Execute SQL in FileMaker and get back native field types
FileMaker Magazin
Created 18th April 2015, last changed 1st March 2019
FM.SQL.Execute - FM.SQL.FieldCount
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins