Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

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