Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
Lang.exit
WMLBrowser.newContext
WMLBrowser.refresh
FUNCTION: Lang.abort
Lang.abort
(errorDescription)
The
Lang.abort
function can be used to abort the WMLScript code that is currently being executed when a fatal error is detected. This is referred to as a program-specified abort. Control is returned to the calling WML program and an error is signaled.
The mandatory
errorDescription
parameter can be any combination of a string and named variables describing the error, or an
invalid
returned by the browser.
The use of
Lang.abort
should be exclusively reserved for handling fatal errors. Non-fatal error detection and signaling can be handled by using the
Lang.exit
function.
This is not a working code example, since we would have to create a fatal error to demonstrate this function.
extern function abortexample()
{
...
Lang.abort("Fatal error!")
;
};
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information