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

SQL.GetParamAsContainer

Queries parameter value as container.

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

MBS( "SQL.GetParamAsContainer"; Command; Param; FileName )

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"
FileName The filename for the container.
This will determinate the type of data to FileMaker.
"test.jpg"

Result

Returns container value or error.

Description

Queries parameter value as container.
If you can provide a file name, we can use it to auto detect the type of data and import it in the right format, e.g. add a preview for PDF or the image size for JPEG.

Examples

Query image param value:

MBS( "SQL.GetParamAsContainer"; $Command; "MyBlob"; $FileName )

See also


SQL.GetParamAsBoolean   -   SQL.GetParamAsDate

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins