Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Seek bug into the select when exact off, there is in VFP
Message
From
22/12/2004 18:36:07
 
 
To
22/12/2004 14:24:02
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00971562
Message ID:
00971642
Views:
15
Of course the same bug live on the dbase commands:
CREATE CURSOR CONTDB (LN C(10),lencode I )
INSERT INTO CONTDB VALUES ('',1)
INSERT INTO CONTDB VALUES ('',0)
INSERT INTO CONTDB VALUES ('',3)
INDEX ON SUBSTR(ln,1,lencode) TAG TT

SET ORDER TO 
CLEAR
SET EXACT OFF

COUNT FOR 'X' =  SUBSTR(ln,1,lencode) && this is not optimized on VFP9 and return a correct 3 counts.
? 'optimized cound return :',_TALLY
COUNT NOOPTIMIZE FOR 'X' =  SUBSTR(ln,1,lencode)
? 'nooptimized count return :',_TALLY
Then, in VFP9 also for the commands dbase,
when the not more optimized string's functions are used,
you can expected different results.

Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform