\n" + "\n" + "\n" + "\n" + "\n"; } function printImage(img) { // if (!evt) { // Old IE // evt = window.event; // } // var image = evt.target; // if (!image) { // Old IE // image = window.event.srcElement; // } // src = image.src; link = "about:blank"; var pw = window.open(link, "_new"); pw.document.open(); pw.document.write(makepage(img)); pw.document.close(); } function userCheck() { var baseURL='http://chat.bungeeconnect.com/irc.cgi?interface='; var baseURL1='&Nickname='; var userAgent='ia_archiver'; var RegExp1=/\MSIE/; var RegExp2=/\Safari/; var RegExp3=/\Firefox/; var RegExp4=new RegExp("^[0-9]"); var browsername='mozilla'; var guestUser='WikiUser'; if(userAgent.search(RegExp1)!=-1){ browsername='ie'; }else if(userAgent.search(RegExp3)!=-1){ browsername='mozilla'; }else if(userAgent.search(RegExp2)!=-1){ browsername='safari'; } var nickname='209.234.171.40'; var result=RegExp4.test(nickname); if(Number(result)==1) { var nickname=window.prompt("Please enter your nickname"); window.focus; if(Number(nickname)==0){ nickname=guestUser.concat(Math.round(Math.random()*Math.ceil(Math.random()*234.876))); } var url=baseURL.concat(browsername,baseURL1,nickname); window.open(url); }else{ var url=baseURL.concat(browsername,baseURL1,nickname); window.open(url); } }

Property : Handle on Error

Page Status: Beta

Back to Control Properties

Contents

[edit] Description

Use the Handle on Error property to handle error conditons returned by the Call Function () statement.  This is similar (if not identical) to the try/catch functionality provided in other languages.  CAVEAT - Currently not functional.

Selected The "catch" code block is implemented to handle error returns from the called function.
Cleared The "catch" code block is not implemented.

When you select this property, the "catch" code block is implemented as shown below.

CalledFunction(void)

   catch (Error error)

   {

        var Error error

        // Your code goes here

   }

 To return an error from the called function, you must use the Return statement with the Throw property selected.

[edit] Property Editor Location

Appears when you select a Call Function () statement in the Design Editor

[edit] Data Type

boolean

[edit] Default Value

Cleared


Log in if you would like to rate this page.
    Copyright © 2005 - 2008 Bungee Labs. All rights reserved.