Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Military Time
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01245247
Message ID:
01245298
Views:
26
>>Your code only works if SET HOURS is set to 12.
>
>If I run
>
>
>set hours to 24
>? Ttoc(Ctot(Transform(Dtos(Date()), '@R 9999-99-99') + 'T' + "13:45"), 2) && 1:45:00 PM
>? Set("Hours") && 24
>
>
>I get the same results as if I run
>
>
>set hours to 12
>? Ttoc(Ctot(Transform(Dtos(Date()), '@R 9999-99-99') + 'T' + "13:45"), 2)  && 1:45:00 PM
>
>? Set("Hours") && 12
>
In VFP8 I get different results depending on the setting. But may be because ttoc has less parameters? Let me check Help.

UPDATE. In VFP8 Set Hours is not mentioned in regards to TTOC() function.
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