Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coding a Time Field to look like a Date Field
Message
 
 
To
23/06/2005 13:15:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
01025936
Message ID:
01026111
Views:
27
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform