Sys\_BreakthruMsgbox
Description
Section titled “Description”Shows a message. Default timeout is 10 minutes. Use giJobTrigBalloonTimeout to change timeout
Syntax
Section titled “Syntax”Sys_BreakthruMsgBox(sCaption, sText, sButtons, sDefault, sIconStyle, bASync) As Boolean
Syntax for newline
Section titled “Syntax for newline”“Please reboot to complete the installation” & “\n” & “From IT Support”
Syntax for Æ Ø Å
Section titled “Syntax for Æ Ø Å”When using Æ Ø Å, the Chr(charcode) function must be used. Below is the table for the characters and below that you can find some examples.
Chr(Charcode) Table
| æ = Chr(230) | Æ = Chr(198) | ø = Chr(248) | Ø = Chr(216) | å = Chr(229) | Å = Chr(197) |
|---|
This example shows how to change the first letter of a word.
| VBScript | If bStatus Then bStatus = Sys_BreakthruMsgBox(“Information”, (Chr(198) & “bler”), “OK”, “ONE”, “INFORMATION”, True) |
|---|---|
| Output | Æbler |
This example shows how to change the last letter of a word.
| VBScript | If bStatus Then bStatus = Sys_BreakthruMsgBox(“Information”, (“Udviklingsmilj” & Chr(248)), “OK”, “ONE”, “INFORMATION”, True) |
|---|---|
| Output | Udviklingsmiljø |
This example shows how to change a letter between the start and the end of a word.
| VBScript | If bStatus Then bStatus = Sys_BreakthruMsgBox(“Information”, (“M” & Chr(229) & “ske”), “OK”, “ONE”, “INFORMATION”, True) |
|---|---|
| Output | Måske |
Parameters
Section titled “Parameters”sCaption (String)
Title of the messagebox
sText (String)
Text in the messagebox
sButtons (String)
Specifies button-type. Valid values: ‘OK’, ‘YESNO’, ‘YESNOCANCEL’, ‘ABORTRETRYIGNORE’, ‘OKCANCEL’ and ‘RETRYCANCEL’
sDefault (String)
Specifies the default button in messagebox. Valid values: ‘ONE’, ‘TWO’ or ‘THREE’
sIconStyle (String)
Used Icon-style in messagebox. Valid values: ‘STOP’, ‘QUESTION’, ‘EXCLAMATION’, ‘INFORMATION’
bASync (Boolean)
Specifies if the messagebox displays asynchronously(True) or waits for the user to respond(False)
Return value
Section titled “Return value”Result will be stored in gsValue. Valid answers are: ‘OK’, ‘YES’, ‘NO’, ‘ABORT’, ‘RETRY’, ‘CANCEL’ and ‘IGNORE’
Example:
Section titled “Example:”VBScript
Section titled “VBScript”bStatus = Sys_BreakthruMsgBox("Message Title", "Message body", "OK", "ONE", "INFORMATION", True)Related functionse
Section titled “Related functionse”Job_SilentInstallation Sys_LogOffUser Sys_GetLocaleLanguageID $InputObject.ShowMessageBox