Article ID: 161053
Article Last Modified on 10/16/2002
SET TALK OFF CREATE TABLE junk (amt y) INSERT INTO junk (amt) VALUE(1.00) INSERT INTO junk (amt) VALUE(0.20) CALCULATE SUM(amt) TO mx mx=STR(mx) && Converts the value from numeric to character type. mz = (VAL(mx) < 0) && Converts mx back to numeric data type. ? mz
SET TALK OFF CREATE TABLE junk (amt y) INSERT INTO junk (amt) VALUE(1.00) INSERT INTO junk (amt) VALUE(0.20) CALCULATE SUM(amt) TO mx mz = (mx < 0) ? mzThe 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.
Keywords: kbbug kbfix kbvfp500afix kbprogramming KB161053