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.GetParamValueList
Queries list of parameter 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 parameter 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 command for insert
Set Variable [$Command; Value:MBS("SQL.NewCommand"; $Connection; "INSERT INTO 'Test' (FirstName, LastName, Birthday, NumberOfOrders, TotalSales) VALUES (:1,:2,:3,:4,:5)")]
# now fill some parameters
Set Variable [$result; Value:MBS("SQL.SetParamAsText"; $Command; 1; SQLite fun::FirstName)]
Set Variable [$result; Value:MBS("SQL.SetParamAsText"; $Command; 2; SQLite fun::LastName)]
Set Variable [$result; Value:MBS("SQL.SetParamAsDate"; $Command; 3; SQLite fun::Birthday)]
Set Variable [$result; Value:MBS("SQL.SetParamAsNumber"; $Command; 4; SQLite fun::NumberOfOrders)]
Set Variable [$result; Value:MBS("SQL.SetParamAsFloat"; $Command; 5; SQLite fun::TotalSales)]
# query list of parameter names:
Set Variable [$ParameterNames; Value:MBS("SQL.GetParamNameList"; $Command)]
# query list of parameter values:
Set Variable [$ParameterValues; Value:MBS("SQL.GetParamValueList"; $Command)]
See also
- SQL.GetFieldValueList
- SQL.GetParamName
- SQL.GetParamNameList
- SQL.GetParamValue
- SQL.NewCommand
- SQL.SetParamAsDate
- SQL.SetParamAsNumber
- SQL.SetParamAsText
- SQL.SetParamValue
- SQL.SetParamValues
Blog Entries
Created 8th April 2015, last changed 8th April 2015
SQL.GetParamValue - SQL.GetParamsAsJSON
Feedback: Report problem or ask question.
Links
MBS Xojo blog