Altova Authentic 2025 Desktop

Opens a dialog box that shows a given message, a confirmation button, and a cancel button. The user will have to click either "OK" or "Cancel" to proceed. Returns a Boolean that represents the user's answer. If the user clicked "OK", the function returns true; if the user clicked "Cancel", the function returns false.

scr_cmd_confirm

 

Signature

confirm(strMessage : String) -> result : Boolean

 

Example (JScript)

if ( confirm( "Continue processing?" ) == false )
 alert("You have cancelled this action");

 

Example (VBScript)

If ( confirm( "Continue processing?" ) = false ) Then
MsgBox("You have cancelled this action")
End If

© 2018-2024 Altova GmbH