General information
Title:
IIF() bug or feature?
Hi,
I have DevideByZero exception in expression when LN_QTY=0D
LN_RESULT = IIf(LN_QTY > 0D, LN_SUM / LN_QTY, -1D)
I expect function return me -1D, but so far as I see, VB compiler evaluate every expression not depends from logical rule?
Is it bug or feature? Is the same in C# ?
Thanks
Denis
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only