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

FM.ExecuteFileSQLOnIdle

This is similar to FM.ExecuteFileSQL, except that it waits until idle to execute.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
FM FMSQL 6.5 Yes Yes Yes Yes Yes

MBS( "FM.ExecuteFileSQLOnIdle"; SQL Statement; FileName { ; Column Delimiter; Record Delimiter; Params } )

Parameters

Parameter Description Example value
SQL Statement the SQL statement
FileName The file name of the database. Get(FileName)
Column Delimiter Optional
Columns Separator, only used with SELECT statement. Default is TAB
9
Record Delimiter Optional
Record Separator, only used with SELECT statement, Default is Return
13
Params Optional
Optional, pass here parameters. One parameter to this function for each parameter you want to pass to the SQL statement.
123

Result

Returns OK or error.

Description

This is similar to FM.ExecuteFileSQL, except that it waits until idle to execute.
You run a script pause after using this function to give it time to execute.
See the other function for more info.
Seems like on FileMaker 11 you get LastError 8310 if you use fields with underscore in the name. You avoid that by placing the field names in quotes.
Use FM.ExecuteSQL.LastErrorMessage and FM.ExecuteSQL.LastError to see error message.

See also


FM.ExecuteFileSQL   -   FM.ExecuteSQL

Feedback: Report problem or ask question.




Links
MBS Xojo PDF Plugins