Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Dialog.SetTimeout
Sets a timeout for the dialog in seconds.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Dialog | 5.2 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
MBS( "Dialog.SetTimeout"; Value ) More
Parameters
Parameter | Description | Example |
---|---|---|
Value | The new timeout value in seconds. | 30 |
Result
Returns OK or error.
Description
Sets a timeout for the dialog in seconds.If a timeout is set the plugin will run a timer to close the window after a given time period.
The result of the dialog will be "Abort" and your scripts can continue.
Examples
Run a dialog with timeout:
Set Variable [$r; Value:MBS("Dialog.Reset")]
Set Variable [$r; Value:MBS("Dialog.SetIcon"; Dialog::Icon)]
Set Variable [$r; Value:MBS("Dialog.SetInformativeText"; Dialog::InformativeText)]
Set Variable [$r; Value:MBS("Dialog.SetMessage"; Dialog::Message)]
Set Variable [$r; Value:MBS("Dialog.SetMode"; "Warning")]
Set Variable [$r; Value:MBS("Dialog.SetWindowTitle"; Dialog::WindowTitle)]
Set Variable [$r; Value:MBS("Dialog.SetTimeout"; 20)]
Set Variable [$result; Value:MBS("Dialog.Run")]
Set Field [Dialog::Result; $result]
See also
- Dialog.GetTimeout
- Dialog.Reset
- Dialog.Run
- Dialog.SetIcon
- Dialog.SetInformativeText
- Dialog.SetMessage
- Dialog.SetMode
- Dialog.SetWindowTitle
Release notes
- Version 13.4
- Fixed a problem with Dialog.SetTimeout closing a FileMaker custom dialog by accident on macOS.
Example Databases
Blog Entries
- MBS FileMaker Plugin, version 13.4pr6
- MBS FileMaker Plugin 6.2 for OS X/Windows
- MBS FileMaker Plugin, version 5.2pr3
This function is free to use.
Created 11st June 2015, last changed 26th March 2016