Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Month repartition from two dates
Message
De
13/07/1997 17:50:17
 
 
À
13/07/1997 13:58:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00039620
Message ID:
00039786
Vues:
43
>>>>Are you doing this on a cursor that contains only the messages for the specified user or on the whole dbf?
>>>
>>>There are others condition that I remove which will only takes the current forum, the current users, etc.
>>>
>>>Yes, it's on the main table.
>>
>>In this case, I think it sould be a little faster:
>>
>>ldDate3 = GOMONTH(ldDate2,1)-1
>>COUNT FOR BETWEEN(ADDDATE, ldDate2, ldDate3) TO lnMessage
>>
>>Because ldDate3 formula will be evaluated only once and not for each record.
>
>Is it really the case? I mean, the evaluation per record. I thought that it's only at first just to get the range.

I'm not very sure what FoxPro will optimize in such an expression, so I can't tell you for sure. But I think it will evaluate it for each record.

Vlad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform