Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change
Message
 
À
03/06/2006 06:46:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Change
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
01126884
Message ID:
01126890
Vues:
15
REPLACE OtherField WITH STRTRAN(OtherField, [2000],[2006]) FOR [2000] $ OtherField
>hi,
>thank you for reply and for 29/02/,it works ,
>i have another table have charcter field as "March 2000" and "April 2000 ",
>
>is there a way to change 2000 to 2006
>
>thanks
>
>>>hi all,
>>>i need your help to change ex..
>>>my field have date as ("01/14/2000") and 02/18/2000 etc..
>>>
>>>i need to change year 2000 to 2006 i try as under but not work
>>>
>>>USE table1
>>>**field name is dat the type is date
>>>SET FILTER TO YEAR(dat)=2000
>>>SCAN
>>>replace YEAR(dat) WITH YEAR(DATE())
>>>ENDSCAN
>>>brow
>>>
>>>thanks
>>
>>
>>REPLACE Dat WITH DATE(2006,MONTH(Dat), DAY(Dat)) FOR YEAR(Dat) == 2000
>>
>>
>>BUT be careful if you have Date -> 02/29/2000 because 2006 is not a leap year.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform