Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date and Time Variables different from one another in ty
Message
 
À
12/08/1999 14:05:50
Thomas Ianuzzi
Information Security Consultants, Inc.
Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00253129
Message ID:
00253131
Vues:
22
>As part of output which is redirected to a file, I have run into the following situation. The code
>
>? "message" + time()
>
>works fine and prints to the screen
>
>but the code
>
>? "message" + date()
>
>causes a type mismatch
>
>anyone know why?

Hi Thomas,

DATE() returns a date datatype and you're trying to display it as a string when you ? "message " + date(). You can use:

? "message " + DTOC(DATE())

or

? " message " + TTOC(DATE()) && or DATETIME() as the parameter.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform