Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Appending from several tables
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01217264
Message ID:
01217284
Views:
13
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform