Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exact same dates not equal ???
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00844225
Message ID:
00844312
Vues:
22
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform