Verify
Migrated Code Examples:
Warning
Message.ShowWarning("Text to display as Warning in Box");
Message.ShowWarningInStatusBar("Text to display as Warning on Status");
Error
Message.ShowError("Text to display as Error in Box");
Message.ShowErrorInStatusBar("Text to display as Error on Status");
Text as expression
Message.ShowWarning("Good " + u.If(Time.Now < new Time(12,00,00), "Morning", "Afternoon"));
Using Title
Message.ShowWarning("Text", "New Title");
Message.ShowWarning("Text", "Date " + u.DStr(Date.Now, "DD/MM/YYYY"));
Using Images
Message.ShowWarning("Text", MessageBoxIcon.Question);
Message.ShowWarning("Text", MessageBoxIcon.Asterisk);
// Image = None
Message.ShowWarning("Text", MessageBoxIcon.None);
Using Buttons
Message.ShowWarning("Text", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
Using Default button
Message.ShowWarning("Text", MessageBoxButtons.YesNoCancel, MessageBoxDefaultButton.Button2);
Using Return value
vReturnValue.Value = Message.ShowWarning("Text");
Using Append to error log
Message.ShowWarning("Text", true);
Full Sample
vReturnValue.Value = Message.ShowWarning ("Text", "Warning",
MessageBoxButtons.YesNoCancel,
MessageBoxIcon.Question,
MessageBoxDefaultButton.Button2,
true);
Help us improve, Edit this page on GitHub
or email us at info@fireflymigration.com