Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set century
Message
 
 
To
12/05/2005 10:14:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01013353
Message ID:
01013397
Views:
12
>Nadya,
>
>>If you think I don't know how to read and use Help, you're mistaken.
>
>LMAO! Hey, I meant no disrepect - just trying to help out. Sometimes we all forget the command we are looking for (happens to me all the time) so I thought I would post the command and some help since I had to check out the command's syntax anyway.
>
>I'm a bit confused by your goal - does this snippet give you any ideas?
>
>
>lcYear = right( transform( year( date() ) + 1 ), 2 )
>set century to 19 rollover &lcYear
>for i=0 to 20
>  ?ctod('01/01/'+ transform(m.i))
>next
>
>
>Malcolm
I works while Yuri's code doesn't!

E.g. this works:
lnYear = 6
set century to 19 rollover 6
for i=0 to 20
  =MESSAGEBOX(ctod('01/01/'+ transform(m.i)))
next
The only minor problem would be with the dates from current year...
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform