Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Could not find it in the Help
Message
 
 
To
21/04/2005 14:22:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01007154
Message ID:
01007448
Views:
15
>
>? CTOT(TimeToStr(DATETIME()))
>? CTOT(TimeToStr(DATE()))
>? CTOT(TimeToStr({}))
>function TimeToStr
>lparameter ttTime
>local lcReturn
>if empty(m.ttTime)
>	lcReturn='{/ :}'
>else
>	lcReturn=(transform(ttoc(m.ttTime,1), "@R 9999/99/99T99:99:99"))
>endif
>return m.lcReturn
>
It doesn't work, I was wrong. My original code works, but this returns wrong values...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform