Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What's wrong with this?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00263572
Message ID:
00263574
Vues:
17
Steve,
If 't_req_date' is a DateTime field, then you need to use TTOC() not DTOC() to include the time.

HTH
Barbara

>I keep an getting error or the wrong result when I run the following:
>
>FOR i = 1 TO 8
> req_date = ('THISFORM.t_req_date'+ALLT(STR(i))+'.Value')
> ? ' Requested Date/Time = ' + DTOC(&req_date)
>ENDFOR
>
>I grab 8 date/times off of my form (out of textboxes) and print them to a file for printing. The "?" line prints a line for each date/time, but the date either prints without a time next to it or I get a syntax/run-time error. I have tried many variations, but I had it working once and then it has not worked since. Please help. Thanks very much.
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform