Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2    Statistic  


Queries list of field values.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
SQL 5.1 Yes Yes Yes Yes Yes
MBS( "SQL.GetFieldValueList"; Command )   More


Parameter Description Example value
Command The command reference number gained with SQL.NewCommand. $Command


Returns list or error.


Queries list of field values.
If value contains a new line or return character, we replace it with \n or \r.


Create a command, fill parameters and query names and values list:

#Create select
Set Variable [$Command; Value:MBS("SQL.NewCommand"; $Connection; "SELECT * FROM Test")]
#Run it
Set Variable [$result; Value:MBS("SQL.Execute"; $Command)]
#get first row of result
Set Variable [$result; Value:MBS("SQL.FetchNext"; $Command)]
# Now query field names
Set Variable [$FieldNames; Value:MBS("SQL.GetFieldNameList"; $Command)]
# and field values of first row
Set Variable [$FieldValues; Value:MBS("SQL.GetFieldValueList"; $Command)]

See also

Example Databases

Blog Entries

FileMaker Magazin

  • Ausgabe 4/2016, Seite 28
  • Ausgabe 3/2016, Seite 30

Release notes

Created 8th April 2015, last changed 8th April 2015

SQL.GetFieldValue   -   SQL.GetFieldsAsJSON

Feedback: Report problem or ask question.

MBS FileMaker Plugins