Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Another CursorAdapter Question.
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00723344
Message ID:
00723620
Vues:
8
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform