Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date Calculation Problems with COM Server
Message
From
23/05/2003 15:02:33
 
 
To
23/05/2003 14:55:36
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00792372
Message ID:
00792381
Views:
23
Kirk,

Does date() return today's date inside the COM server?

Does this fail also?
ldBOM = date(year(date()),month(date()),1)
>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!
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform