Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace
Message
 
 
À
16/04/2008 04:19:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01311003
Message ID:
01311076
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform