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

ListDialog.AddSQL

Adds items via SQL statement.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
ListDialog 5.1 Yes Yes No No No

MBS( "ListDialog.AddSQL"; SQL Statement; FileName { ; Params } )

Parameters

Parameter Description Example value
SQL Statement SQL Statement as a Text string
FileName The target database name. Can be empty to not limit query to one database. ""
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 number of items added or error.

Description

Adds items via SQL statement.
First field from SQL result is used as text, second as tag and third as header flag.
Tag and header columns are optional.

Examples

Add items:

MBS("ListDialog.AddSQL"; "select Text, Tag, Header from Liste")


ListDialog.AddItemsToList   -   ListDialog.ClearList

Feedback: Report problem or ask question.




Links
MBS Xojo blog