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 list of parameter names.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
SQL 5.1 Yes Yes Yes Yes Yes

MBS( "SQL.GetParamNameList"; Command )


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


Returns list or error.


Queries list of parameter names.


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.GetParamName   -   SQL.GetParamValue

Feedback: Report problem or ask question.

MBS Xojo Plugins