>>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.