Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Queries field value for given position in result.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
FM FMSQL 5.1 Yes Yes Yes Yes Yes

MBS( "FM.SQL.Field"; SQLref; Row; Column )


Parameter Description Example value
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


Returns value or error.


Queries field value for given position in result.
Native data type is preserved so this function can return text, number, time, date, timestamp and container.


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

Example Databases

FM.SQL.Execute   -   FM.SQL.FieldCount

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins