Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coding a Time Field to look like a Date Field
Message
 
 
À
23/06/2005 13:15:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Divers
Thread ID:
01025936
Message ID:
01026111
Vues:
26
This message has been marked as the solution to the initial question of the thread.
See Re: Display a date from a datetime? Thread #965996 Message #966087

>
>I need to make a Time Field look like a Date Field on a Form in a Textbox at run time. This is only required if the user is connected to one database instead of another. Is there a way to do this in code?
>I tryed:
>
>thisform.textbox1.controlsource = "TTOD(vehicle.timedate)"
>and
>thisform.textbox1.controlsource = " =TTOD(vehicle.timedate)"
>
>neither worked, so I tried this in the refresh of the form
>
>if vartype(vehicle.timedate) = "T"
>  thisform.textbox1.value = TTOD(vehicle.timedate)
>endif
>
>none worked.
>Any Help???
>
>TIA
>Beth
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform