Is this a bug?
It errors saying that I have passed a Floating Point as the first parameter.
Yet It is clearly not a floating point.
Is this a problem with ComTools failing to determine the data type correctly, or is FoxPro setting is wrong?
Wrapping it in an INT() like the error message suggests does work, but I fail to understand why it fails in the first place.
Any Ideas?
(Added Note: Also does the same under VFP 6 and 7 using CVF50.fll)
SET LIBRARY TO CTFW
PRIVATE a_tmp
DIMENSION a_tmp[3]
a_tmp[1]= 0.00
a_tmp[2]= ""
a_tmp[3]= 0
CREATE CURSOR Temp (n1 N(5,2), c1 C(5), n2 N(1))
INSERT INTO Temp VALUES (1.00, "Test", 3)
SELECT n1, c1, n2;
FROM Temp ;
INTO ARRAY a_tmp
?a_tmp[1]
?a_tmp[2]
?a_tmp[3]
? OR(a_tmp[3], 0)
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