The ShowErrorMessage method displays an error message, similar to using the MESSAGEBOX() function.
Syntax
ShowErrorMessage(Message as String)
Parameters
Message
The text of the error message.
Return Value
None.
Example
These simple examples display an error message to the user.
The code shown in these examples would be part of a larger script.
Visual FoxPro
SQApplication.ShowErrorMessage('Unable to locate desired resource')
VBScript
Application.ShowErrorMessage("Unable to locate desired resource")
JavaScript
Application.ShowErrorMessage('Unable to locate desired resource') ;
C#
SQApplication.ShowErrorMessage("Unable to locate desired resource");
VB.NET
SQApplication.ShowErrorMessage("Unable to locate desired resource")
See also
Application Object | Decrypt© Stonefield Software Inc., 2024 • Updated: 06/06/16
Comment or report problem with topic