Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with SCAN...ENDSCAN
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00153935
Message ID:
00153982
Views:
22
>
>select cpayment
>SCAN FOR ((cpay_flag = .t.) and (!empty(cpay_schdate)))
>	replace cpay_schdate with {}
>	replace cpay_flag with .f.
>	if !cpay_update = 'D' then
>		replace cpay_update with "C"
>	endif
>	replace cpay_amt with 0.00
>ENDSCAN
>
You could try:
UPDATE cPayment ;
    SET cPay_SchDate = {}, ;
        cPay_Flag = .F., ;
        cPay_Update = IIF(cPay_Update = 'D', 'D', 'C'), ;
        cPay_Amt = 0.00 ;
    WHERE cPay_Flag AND NOT EMPTY(cPay_SchDate)
I just checked it, and it seems to work alright.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Reply
Map
View

Click here to load this message in the networking platform