Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date functions
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00190541
Message ID:
00190553
Views:
13
Actually, it just occurred to me what you're trying to do: SET CENTURY to the century of the current date. Try this:

SET CENT TO VAL(LEFT(ALLT(STR(YEAR(DATE()))), 2))

-Works great for me!
Mark
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform