Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.1   12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4    Statistic    FMM    Blog  

ListDialog.SetOtherButtonEvaluate

Sets the other button evaluate.

Component Version macOS Windows Linux Server iOS SDK
ListDialog 9.5 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "ListDialog.SetOtherButtonEvaluate"; Expression )   More

Parameters

Parameter Description Example
Expression The expression to evaluate.

Result

Returns OK or error.

Description

Sets the other button evaluate.
If set, we run this expression instead of closing the dialog.
This can be useful to start action while dialog stays open. Please note you can't run a script while dialog is open.
Other button is only visible if the label is set.

Examples

Add a button and let it run showurl to open website:

Set Variable [ $r ; Value: MBS("ListDialog.SetOtherButtonLabel"; "Help") ]
Set Variable [ $r ; Value: MBS("ListDialog.SetOtherButtonEvaluate"; "MBS( \"ShowURL\"; \"https://mbsplugins.eu\" )") ]

Make an add button to add entries into a list without closing dialog:

Set Variable [ $r ; Value: MBS("ListDialog.SetOtherButtonLabel"; "Add") ]
Set Variable [ $r ; Value: MBS("ListDialog.SetOtherButtonEvaluate"; "Let([$$list = $$list & MBS(\"ListDialog.GetSelectedTitle\") & Char(13)];1)") ]

See also

Release notes

Blog Entries

This function is free to use.

Created 11st October 2019, last changed 19th April 2023


ListDialog.SetHeight - ListDialog.SetOtherButtonLabel

💬 Ask a question or report a problem