The information in this article applies to:
SYMPTOMSPerforming a comparison on a value created with the CALCULATE SUM() function causes and illegal operation error. In Windows 95, the error message states the following: After pressing the Details push button, the following message appears: In Windows NT 4.0, the following error appears: This behavior does not occur in Visual FoxPro 3.0a. RESOLUTIONThe use of the STR() and VAL() functions may prevent this error. The modified code example below shows the implementation of this resolution:
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0a. MORE INFORMATIONThe following code illustrates this behavior. The use of other aggregate functions, such as AVG(), in the CALCULATE function produces similar results. Steps to Reproduce BehaviorEnter the following code in a program and execute:
The error occurs during the comparison of the variable created with the
CALCULATE SUM() function and another value. In the example above, initially
declaring the variable mx numeric does not prevent the error.
Additional query words:
Keywords : kbprg kbVFp kbVFp500afix kbVFp500bug FxprgGeneral |
Last Reviewed: August 24, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |