SET SHOWERROR

From Lianjapedia
Jump to: navigation, search

Purpose

Define the message displayed for rsp script based WebView errors

Syntax

SET SHOWERROR ON | OFF | TO <expC>

See Also

DOSERROR(), DISPLAY CALLS, ERRNO(), ERROR(), LIST CALLS, MESSAGE(), ON ERROR, PROCLINE(), PROCNAME(), RETRY, SET ONERROR, STRERROR()

Description

The SET SHOWERROR TO <expC> command causes the specified HTML formatted character expression, <expC>, to be displayed instead of the default message when an error occurs in the rsp script of a WebView.

The default message is 'A runtime error has occurred while generating this WebView.'

The SET SHOWERROR ON | OFF command is ignored as SHOWERROR is always OFF within Lianja Apps.

Example

<%@ Language=VFP %>
<html>
<body>
<%
	set showerror off
	set showerror to '<h1>Error has occurred!</h1>';
	+'<p>Return to the <a href="http://www.lianja.com">Home</a> page</p>'
	crash
%>
</body>
</html>