Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace for all records
Message
From
07/06/2005 05:49:09
 
 
To
07/06/2005 05:31:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01020808
Message ID:
01020812
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform