Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date translated to datetime with COM
Message
From
28/09/2002 23:20:26
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00705631
Message ID:
00705632
Views:
11
Hi, Evan.

>Despite strongly typing my methods and parameters in my VFP COM object as Date, dates passed to and returned from are converted to DateTime. Is there anyway to prevent or correct this?

The VFP Type Library maps all Date to Datetime... that´s kinda silly, because even if you do something like this:
Define Class Test as Session Olepublic

  Procedure Test(TestDate as Date) as Date
     Return TToD(TestDate)
  EndProc 

EndDefine
You´ll see that the return of this method will be a DateTime...

Some months ago we had a big trouble with this on the UT´s web service... basically, people from different timezones than Montreal just got weird results when trying to get "messages for a given date"...
Claudio Lassala
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform