Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append from multiple tables
Message
De
24/12/2008 10:22:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
24/12/2008 04:05:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01369297
Message ID:
01369609
Vues:
6
Note that the following will NOT work:
append from la_tables(i)
* or:
append from some_variable
This is because Visual FoxPro looks for a file named some_variable, or la_tables(i).

You have to force Visual FoxPro to evaluate the variable (or expression), with the extra parentheses.

>thank you,it works
>
>>At the end, you just need to change the expression for the array element.
>>
>>
>>...
>>for i = 1 to 47
>>  append from (la_tables(i))
>>next
>>
>>
>>Otherwise, it looks as if it should work.
>>
>>>hi all,
>>>
>>>i need help to append all tables as below to one table,
>>>
>>>thanks
>>>
>>>
>>>DIMENSION la_tables(17)
>>>la_tables[1] = "t1"
>>>la_tables[2] = "t2"
>>>la_tables[3] = "t3"
>>>la_tables[4] = "t4"
>>>la_tables[5] = "t5"
>>>la_tables[6] = "t6"
>>>
>>>la_tables[7] = "t7"
>>>la_tables[8] = "t8"
>>>la_tables[9] = "t9"
>>>la_tables[10] = "t10"
>>>la_tables[11] = "t13"
>>>la_tables[12] = "t16"
>>>
>>>la_tables[13] = "t19"
>>>la_tables[14] = "t40"
>>>la_tables[15] = "t41"
>>>la_tables[16] = "t42"
>>>la_tables[17] = "t43"
>>>******************************************
>>>
>>>copy structure to combined2008
>>>use combined2008
>>>
>>>for i=1 to ....
>>> 
>>>APPEND FROM (lc_txtfile)
>>> 
>>>next
>>>
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform