Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rollover function and CDX's
Message
From
16/02/2000 11:33:21
 
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00331810
Message ID:
00332916
Views:
13
>>>>Excuse me for asking a stupid question, but did you also SET CENTURY ON?
>>>
>>>set century to 19 rollover 60 implicitly sets century on.
>>
>>No, it does NOT.
>
>You are right, my aplogies. However I confirmed that CENTURY is on. I think I found the problem. The legacy application that inserts the data does not have CENTURY on. Therefore, the index the index can't match my expression. If I reindex the table and try the same seek, everything works as expected.

If you are using dates in an index expression, you should be using DTOS(). This doesn't care if SET CENTURY is ON or OFF as the format is always YYYYMMDD.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform