Newbie: exiting abruptly

19 views
Skip to first unread message

bugmagnet

unread,
Jun 7, 2012, 12:57:35 AM6/7/12
to js...@googlegroups.com
Hello JSDB,

I'm really impressed with the speed of this, compared to Microsoft's JScript. Bodes well for the future.

I'm curious about system.exit and system.quit. How do I get them to work immediately? For example, I would have the following bring the script to an abrupt end.

if (!oCFG.Load(sCFGFile)) {
writeln("Cannot load " + sCFGFile);
system.quit();
}

However, it doesn't end there (in the event that oCFG's Load() method returns false).

What am I missing?

Kind regards,
Bruce.

Reply all
Reply to author
Forward
0 new messages