Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Braces to set a Date
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00304150
Message ID:
00304169
Views:
31
>>Jim could you tell me where you discussed at length the use of setting a date using the braces {}. I know I have read it somewhere, but for the life of me I cant remember where you discussed it. Was it a book or FoxTalk? I know you when over the rules on when it was interpreted or set and how it releates to Y2k. Any help would be appreciated.
>
>Bret,
>
>There was an article in FoxTalk a long while ago that I wrote about dates, adn one of my columns in "What's Really Inside?" was about dates. Here's the stuff that was in it about the SET DATE stuff.
>
>This compile time assignment of dates makes for some very interesting problems. For example, the following code will display a blank date if the SET DATE setting is AMERICAN in your development environment.
>
>SET DATE BRITISH
>? {25/11/1998}
>
>The reason you will get the blank date is that the SET DATE of AMERICAN will control the interpretation of the date literal {25/11/1998} and there is no month 25. The SET DATE line will not execute until you run the code and by that time the date literal has already been compiled.


Thanks for the quick response. I will look into some of my back issues of FoxTalk and use what you sent. Thanks again Jim.
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Reply
Map
View

Click here to load this message in the networking platform