Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SCAN Confused?
Message
From
06/06/2001 16:39:21
 
 
To
06/06/2001 16:29:42
Jonathan Cochran
Alion Science and Technology
Maryland, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00515720
Message ID:
00516040
Views:
13
>I've tried the same thing. Although the datetimes look the same, they aren't. Go to one of the duplicates, save it to a variable, skip to the next record, and save it to another variable. Now, if you do an equality test on the two, FoxPro says they are different.

Interesting...they are different, but not unique for index purposes :)

>
>It appears to work fine if I do the following:
>
>ldCount = {^2001-01-01 12:00:00AM}
>lnCount = 0
>SCAN
>   REPLACE PKEY WITH ldCount + lnCount
>   lnCount = lnCount + 1
>ENDSCAN
>
>

I almost went that way...but I didn't think it would make difference (plus I was tired of the problem). Thanks for trying it...

>It definitely looks like a rounding issue to me. The first one avoids the small rounding error by always adding to the initial date from scratch. The second one will force the datetime to remove any fractional pieces after each addition.
>

Yes, it must be. All is well in the world of the Fox.
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform