Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cmonth
Message
De
23/06/1999 14:55:13
 
 
À
23/06/1999 13:31:37
Dovi Gilberd
Dovtware Consulting Inc
Miami, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: Cmonth
Divers
Thread ID:
00233028
Message ID:
00233120
Vues:
28
>IM SORRY TO BOTHER YOU ALOT....IM SORRY
>THANK YOU.. I DID WHAT YOU DID, BUT ITS NOT WORKING..I THHINK THAT IS HAS TO DO WITH CTOD...
>
>MY CODE GOES LIKE THIS
>substr(view1.strtdate,3,2) + "/" + substr(view1.strtdate,5,2) + "/" + substr(view1.strtdate,1,2)
>
>THIS CONVERTS 990501 TO 05/01/99..ITS A CHARACTER FIELD NOT A DATETIME FIELD
>
>WHAT COULD BE WRONG

That's what CTOD does...character to date. You can only use the CMONTH function on date type fields, that's why you have to use the CTOD function to convert the character string to a date type. What problem are you having?
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform