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.0   6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3    Statistic  

SQL.GetParamAsNumber

Returns param's value as integer; converts if needed.

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

MBS( "SQL.GetParamAsNumber"; Command; Param )

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"

Result

Returns the value or error message.

Description

Returns param's value as integer; converts if needed.
For float values, you can use SQL.GetParamAsFloat.

see also:
http://www.sqlapi.com/OnLineDoc/ValueRead_asLong.html

Examples

Query value of first parameter:

MBS( "SQL.GetParamAsNumber"; $Command; "#0" )

See also


SQL.GetParamAsJPEG   -   SQL.GetParamAsPDF

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins