The information in this article applies to:
SYMPTOMSWhen using the MOD() function with one negative number and the expected result is the numerator, FoxPro returns the wrong value. For example, MOD(9,-10) returns -1. The correct result should be 9. CAUSE
This occurs because the MOD() function was designed to maintain
compatibility with the dBASE MOD() function, which also returns this
result.
RESOLUTIONCreate a function similar to the following and use this function instead of MOD().
STATUSThis behavior is by design. Additional query words: VFoxWin FoxWin
Keywords : |
Last Reviewed: December 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |