Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compare contents of two dbfs
Message
De
25/04/2003 09:06:40
 
 
À
23/04/2003 13:04:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00780688
Message ID:
00781432
Vues:
23
Use an index on both tables (usually primary key) (loan in example)

open both tables

Select 1
use ...
set order to loan &&&(tag built as index on loanaccount tag loan)

Select 2
use ...
set order to loan

select table1
go top

do while (.not.eof())
select table2
seek table1.loanaccount

If len(alltrim(table2.comparefield)) = 0 &&& empty (or use = 0 for numeric)
replace table2.comparefield with table1.comparefield
endif

select table1
skip

enddo

- Kev
``` Appreciate a normal day, it is always better than a bad one ```

Kev
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform