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.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  

ProgressDialog.SetCancel

Sets the cancel state.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
ProgressDialog 2.4 Yes Yes No No No

MBS( "ProgressDialog.SetCancel"; Flag )

Parameters

Parameter Description Example value
Flag the new cancel state. 1

Result

Returns "OK" on success.

Description

Sets the cancel state.
You can query in your loop whether user clicked cancel so you can exit your loop.
If your script does not make a pause or a long running plugin functions runs, there may be no reaction on the cancel button.

Examples

Set cancel state

MBS( "ProgressDialog.SetCancel"; 1 )

Reset Cancel state:

MBS( "ProgressDialog.SetCancel"; 0 )

See also

Example Databases


ProgressDialog.SetButtonCaption   -   ProgressDialog.SetFont

Feedback: Report problem or ask question.




Links
MBS Xojo tutorial videos