Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Appending from several tables
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01217264
Message ID:
01217584
Vues:
15
It works, but does not append
There's no error message

Could you please take a look ?
SET EXCLUSIVE OFF

STORE my_old_dir TO MyOldPath  
STORE CURDIR() + "/data" TO MyNewPath 

lnOldTables = adir(laOldTables, MyOldPath + "*.dbf")  
lnNewTables = adir(laNewTables, MyNewPath + "*.dbf") 

for lnI = 1 to lnNewTables
   lnRow = ascan(laOldTables, laNewTables[m.lnI,1],1,-1,1,15)
    if lnRow > 0 
         use (laNewTables[m.lnI]) exclusive in 0 alias NewData
         
         zap
         append from (myOldPath + laOldTables[m.lnRow,1])
         use in NewData
  endif
NEXT
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform