Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date functions
Message
 
To
23/02/1999 12:53:15
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00190541
Message ID:
00190544
Views:
14
YEAR() returns numeric. Try:

if left(ALLT(STR(year(date()))),2) = 20

HTH!
Mark

>Hello:
>
>I'm having a little trouble with this code. I want to pick up if the
>century.
>
>Can I use left() function here? What I have isn't working.
>
>if left((year(date())),2) = 20
> set century to 20
>else
> set century to 19
>endif
>
>Any input would be appreciated. Thanks.
"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