Christian Biesinger ha scritto:
Daniele B. wrote:
var nCard = -1;
aBook.getCardCount(nCard);
The istruction that generate the error is "aBook.getCardCount(nCard);".
That should be:
var outval = {};
aBook.getCardCount(outval);
var nCard = outval.data;
Maybe it's .value, I'm never sure which is right...
That interface should really be changed to just return the number...
Hi,
I try your example but Mozilla crash in bad mode...
I try an example found in the js of mozilla that say to do the next rows:
try {
var nCard = new Object();
addrDatabase.getCardCount(nCard);
} catch (ex) {
alert("Error: " + ex);
}
but crash in the same way.
If I try to assign a value to nCard like in the next rows:
try {
var nCard = new Object();
addrDatabase.getCardCount(nCard);
} catch (ex) {
alert("Error: " + ex);
}
the error that is thrown is that nCard must be an object ...
I'am new of this language ... but is very strange that the same type of
parameter is used in different ways.
Please help!
_______________________________________________
Mozilla-xpcom mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-xpcom