Hi Regina, On Sunday, 2008-04-13 13:25:25 +0200, Regina Henschel wrote:
> Can I use
> throw errNoConvergence;
> for example in this way?
>
> do
> ...
> while (!bFinished && fCount<10000);
> if (fCount>=10000)
> {
> throw errNoConvergence;
> }
> return fApprox;
>
> If it works in this way with throw, does ScGammaDist() need a try..catch?
You can use
if (fCount>=10000)
{
SetError( errNoConvergence);
return;
}
and in the calling function
if (nGlobalError)
{
PushError( nGlobalError);
return;
}
assuming that is the interpreter function handling the parameter stack.
Eike
--
OOo/SO Calc core developer. Number formatter stricken i18n transpositionizer.
SunSign 0x87F8D412 : 2F58 5236 DB02 F335 8304 7D6C 65C9 F9B5 87F8 D412
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't send personal mail to the [EMAIL PROTECTED] account, which I use
for
mailing lists only and don't read from outside Sun. Use [EMAIL PROTECTED]
Thanks.
pgpxvKqGThcz8.pgp
Description: PGP signature
