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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Dialog.SetButton
Sets button text.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Dialog | 7.1 | Yes | Yes | No | No | No |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Index | The index of the button. From 1 to 10. |
4 |
| Text | The new button label. |
Result
Returns OK or error.
Description
Sets button text.Index 1 is default button, 2 alternate button, 3 other button and 4 to 10 are even more buttons.
Examples
Set six buttons:
Set Variable [$r; Value:MBS("Dialog.SetDefaultButton"; "1")]
Set Variable [$r; Value:MBS("Dialog.SetAlternateButton"; "2")]
Set Variable [$r; Value:MBS("Dialog.SetOtherButton"; "3")]
Set Variable [$r; Value:MBS("Dialog.SetButton"; 4; "4")]
Set Variable [$r; Value:MBS("Dialog.SetButton"; 5; "5")]
Set Variable [$r; Value:MBS("Dialog.SetButton"; 6; "6")]
Show dialog with 7 buttons:
Set Variable [ $r; Value: MBS("Dialog.Reset") ]
Set Variable [ $r; Value: MBS("Dialog.SetButton"; 0; "Send All Copies to US") ]
Set Variable [ $r; Value: MBS("Dialog.SetButton"; 1; "Send All Copies to the Informant") ]
Set Variable [ $r; Value: MBS("Dialog.SetButton"; 2; "No Copies are required") ]
Set Variable [ $r; Value: MBS("Dialog.SetButton"; 3; "Reorder copies and send them to Informant”)]
Set Variable [ $r; Value: MBS("Dialog.SetButton"; 4; "Reorder copies and send them to US”)]
Set Variable [ $r; Value: MBS("Dialog.SetButton"; 5; "Reorder and send to US") ]
Set Variable [ $r; Value: MBS("Dialog.SetButton"; 6; "Town Hall Form Only”)]
Set Variable [ $r; Value: MBS("Dialog.SetButton"; 7; “Cancel”) ]
Set Variable [ $r; Value: MBS( "Dialog.SetMessage"; "Hello World" ) ]
Set Variable [ $r; Value: MBS( "Dialog.SetWindowTitle"; "test" ) ]
Set Variable [ $r; Value: MBS( "Dialog.Run" )]
Set Variable [ $button; Value: MBS( "Dialog.GetButtonPressed" )]
See also
- Dialog.GetButton
- Dialog.SetDefaultButton
- Dialog.SetIcon
- Dialog.SetMessage
- Dialog.SetOtherButton
- Dialog.SetWindowTitle
- ImageCapture.RequestScan
- JSON.Import
- ProgressDialog.SetButtonCaption
- XML.Import
Blog Entries
Release notes
- Version 7.1
- Added Dialog.GetButton and Dialog.SetButton to have up to 10 buttons on a dialog.
- Fixed dialog functions so Dialog.SetButtons and Dialog.SetMode with empty text doesn't delete custom buttons.
Created 14th February 2017, last changed 26th October 2017
Dialog.SetAlternateButton - Dialog.SetButtons
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins