Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exact same dates not equal ???
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00844225
Message ID:
00844312
Views:
21
>>So how did this parameter get calculated? A date field in a table/view/cursor can't store the fractional part, but a memory value can and you can't see it!
>
>Thats it !!
>
>I am using the passed in dTargetDate like so...
>
>Parameters dTargetBeginDate , dTargetEndDate , oAvblForm
>
>cHTM4AvailableUnits = This.getHTMLStr("avblUnitsTablePage")
>iDays2Show = 24
>
>iStayLen = dTargetEndDate - dTargetBeginDate
>
>*-- This number can be a fractional, I'll change this to force an INT()
>iEachSideDays = (iDays2Show-iStayLen )/2
>
>*-- Figure out what the middle is
>dDate2Match = dTargetBeginDate - iEachSideDays
>dDate2ShowEnd = dDate2ShowBegin + ( iDays2Show - 1 )
>
>
>Thanks !!
>
>PS How come the ttod()'s matched ???


I have no idea. When I tried showing my two date values that didn't compare, the TTOC() showed different values.

This bit me a long time ago (FP1.0) in a scheduling program. I learned the hard way to make sure only integer values were added to dates.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform