Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides
New in version: 5.4   6.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2    Statistic  

SQL.SetParamAsText

Sets parameter's value as character string data.

Component: SQL
Version: 2.6
Mac OS X: Yes
Windows: Yes
Server: Yes
FileMaker Cloud: Yes

MBS( "SQL.SetParamAsText"; Command; Param; Value )

Parameters

Parameter Description Example value
Command The command reference number gained with SQL.NewCommand. $Command
Param The parameter name or ID. Pass number for ID, a text with parameter name or the index with # prefix. e.g. "#0" for first parameter. "1"
Value The new value "Hello World"

Result

Returns "OK" or error message.

Description

Sets parameter's value as character string data.

Examples

Set parameter with ID = 1 to text

MBS("SQL.SetParamAsText"; $Command; 1; $FirstName)

Set parameter Lastname with text:

MBS("SQL.SetParamAsText"; $Command; "Lastname"; $LastName)

Set Param with index 0 to FirstName field:

MBS("SQL.SetParamAsText"; $Command; "#0"; SQLite fun::FirstName)

See also


SQL.SetParamAsNumber   -   SQL.SetParamAsTime

Feedback: Report problem or ask question.




Links
MBS REAL studio tutorial videos - Pfarrgemeinde Ministranten Nickenich