less than 1 minute to read
The ShowErrorMessage method displays an error message, similar to using the MESSAGEBOX() function.
Syntax
dart
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
foxpro
SQApplication.ShowErrorMessage('Unable to locate desired resource')
VBScript
Application.ShowErrorMessage("Unable to locate desired resource")
JavaScript
javascript
Application.ShowErrorMessage('Unable to locate desired resource') ;
C#
csharp
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