Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace
Message
 
 
To
16/04/2008 04:19:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01311003
Message ID:
01311076
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
>hi all,
>any help to active this code
>
>
>select payroll
>zap
>append from dbf('mycur')&& ok
>
>******************************
>***no errors no result
>SCAN
>   M.EMP=mycur.employeeid
>   M.MARK1=mycur.WARK
>   replace MSTR.wark WITH M.MARK1 FOR MSTR.NO =M.EMP
>ENDSCAN
>
>thanks

Don't use REPLACE FOR condition in the SCAN LOOP

If you want to update one table based on another use UPDATE command, something like
update Mstr set Wark = myCur.Wark from Mstr inner join MyCur on Mstr.No = myCur.Emp
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform