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:
01217284
Vues:
14
>Naomi
>
>Your solution seems great
>
>But I didn't understand your line
>
>"append from that old table"
>
>Is it a comment ?
>
>Or should I replace "old table" it with table name ?
>The problem is that I never know the table name
>
>Moises

ASCAN(ArrayName, eExpression [, nStartElement [, nElementsSearched [, nSearchColumn [, nFlags ]]]])

So, we should have
lnRow = ascan(laOldTables, laNewTables[m.lnI,1],1,-1,1,15)
and then use
append from (myOldPath + laOldTables[m.lnRow,1])
But actually, since we're searching the new name in the array of the old tables, all we have to do is to check, if this name exists. We're looking for updating the newTable_Name with the data from olTable_name where table_names are the same.
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