Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date Calculation Problems with COM Server
Message
De
23/05/2003 15:41:08
 
 
À
23/05/2003 14:55:36
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00792372
Message ID:
00792394
Vues:
13
COM always uses DATETIME. If you pass a date to a COM server, it will receive a Datetime, and vice versa for the return value. Also, make sure the DATE() is correct on the server.

>Hello. I'm having a strange problem with DATES in my VFP 7/8 COM servers. For some reason, date calculations are not working as expected.
>
>I use the following calculation to determine the beginning of the month. When I call this from any class, form, etc., it works fine, but when I access the same function in a COM server, it always returns yesterdays date.
>
>ldBOM=( DATE() - DAY( DATE() ) ) + 1
>
>Does anyone have any ideas?
>
>Thanks!
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform