Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set century
Message
 
 
À
12/05/2005 10:14:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01013353
Message ID:
01013397
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform