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.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

SQL.GetFieldValueList

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 )

Parameters

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

Example Databases


SQL.GetFieldValue   -   SQL.GetIsolationLevel

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins