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  


Fetches a row from a result set.

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

MBS( "SQL.FetchPos"; Command; Offset { ; Relative } )


Parameter Description Example value
Command The command reference number gained with SQL.NewCommand. $Command
Offset The index/offset of the row. Zero based. 1
Relative Optional
Pass 1 for relative movement.


Returns 0, 1 or error message.


Fetches a row from a result set.
You may need to request recordset to be scrollable to have this work. For that, please call MBS( "SQL.SetCommandOption"; $Command; "Scrollable"; "True" ) before doing the query.

Result is 1 on success or 0 on failure.

See also

SQL.FetchNext   -   SQL.FetchPrior

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins