Newbie: exiting abruptly

已查看 19 次
跳至第一个未读帖子

bugmagnet

未读,
2012年6月7日 00:57:352012/6/7
收件人 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.

回复全部
回复作者
转发
0 个新帖子