Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date functions
Message
 
À
23/02/1999 12:53:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00190541
Message ID:
00190544
Vues:
15
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform