Consultor Eletrônico



Kbase 17456: Divide by Zero error In Actuate
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
Divide by Zero error In Actuate

WorkAround for Divide By Zero


The IIF() has a bug in it.
it does not solve the problem for divide by zero.
The best work around for this problem is to write an
external basic function.Once the file is included in
your design file by just simply doing include Basic file.
All the controls can then access this function by just
simply calling this function from the Value Expression.

For eg If you do X/Y in your ValueExpression the all you
have to do is

call DivideByZero(X,Y) in your Value Expression.


I am sending along a master.bas file as an attachment.

This Master.Bas file has the DivideByZero Function.

So please Include this file in your design file and
simply call this function from your controls Value
Expression.

The advantage of having this function in an external
basic file is that all the design files
can acccess it rather than having to write the function
all over again.


Progress Software Technical Support Note # 17456