Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Another CursorAdapter Question.
Message
From
17/11/2002 05:54:03
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00723344
Message ID:
00723620
Views:
7
Hi!

Try something like following:
MyCursorAdapter.ConversionFunc = "MyDateTimeField TTOD"

"TTOD" is a converting function. As far as I know, you can put there your own UDF function as well, but it should accept only single parameter and should return a value that goes into the final data cursor.

It might not work in the beta, but most likely would work in the final release.

>Is it possible to convert a SQL Datetime field into a VFP Date field using the cursor adapter. I have code that can obtain the information into a VFP cursor, but I want the datetime field to be a date. I tried setting this in the CursorSchema as a D, but it always creates a datetime.
>
>Any ideas ?
>
>Thanks in advance.
>Simon.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform