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
SQL.GetFieldValueList
Queries list of field values.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| SQL | 5.1 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Command | The command reference number gained with SQL.NewCommand. | $Command |
Result
Returns list or error.
Description
Queries list of field values.If value contains a new line or return character, we replace it with \n or \r.
Examples
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
- SQL.Execute
- SQL.FetchNext
- SQL.GetFieldName
- SQL.GetFieldNameList
- SQL.GetFieldValue
- SQL.GetParamValueList
- SQL.NewCommand
Example Databases
Blog Entries
FileMaker Magazin
Release notes
- Version 8.5
- Fixed bug in SQL.GetFieldValueList with empty texts being ignored in first field.
Created 8th April 2015, last changed 8th April 2015
SQL.GetFieldValue - SQL.GetFieldsAsJSON
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins