Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace for all records
Message
De
07/06/2005 05:49:09
 
 
À
07/06/2005 05:31:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Divers
Thread ID:
01020808
Message ID:
01020812
Vues:
25
replace still with 1 in 'tab2' for amount <= 0 or (month1<MONTH(DATE()) and year1<=YEAR(DATE()))
>hi all,
>i have table with many fields,
>evry item have 13 records,
>i want to replace field still with 1 for the 13 records
>i try as under,but the first part work ,
>
>USE tab2
>m.no=no
>m.month1=month1
>m.year1=year1
>SCAN
>IF amount1<=0
>     scan
>         SET FILTER TO no==m.no
>         replace still WITH 1
>     ENDSCAN
>endif
>
>  IF   month1<MONTH(DATE()) and year1<=YEAR(DATE())
>    scan
>       SET FILTER TO no==m.no
>       replace still WITH 1
>   ENDSCAN
> ENDIF
>SET FILTER TO
>
>thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform