Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append text file!!!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00043111
Message ID:
00043400
Vues:
34
Hi Ajay,

The following is what I did, However it doesn't check the duplicate record.
Also the code works for the first time when both temp and annual database are empty. But when the second time come, where temp database now contain duplicate records for each record (double the size). And the code didn't check for dup, instead it just append all the records from temp database into annual database.

Any ideas!!!


select temp

APPEND FROM d:\dean\ftp.txt TYPE delimited with |

select annual
set order to lastname


select temp
scan
if !seek(f_fname+f_lname, "annual")
scatter fields like * to t_array
select annual
append from array t_array
release t_array
else
exit
endif
endscan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform