Back

UriPath

Hello World

Decodes a URI encoded string.

app.Uri2Path( uri ) → string

See Also: SetOnError

Example - Catch App Errors

function OnStart()
{
    app.SetOnError( OnError );
    throw "My thrown error";
}

function OnError( msg, line, file )
{
    var text =
        'Message: "' + msg + '"\n' +
        'Line: ' + line + '\n' +
        'File: "' + app.Uri2Path(file) + '"';


    app.Alert( text, "Received error message:" );
}
    Copy     Copy All       Run      
string: URI encoded