>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