Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Uniao de registros em um unico .txt
Message
From
14/06/2003 10:24:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
14/06/2003 00:31:20
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00800081
Message ID:
00800113
Views:
27
This message has been marked as a message which has helped to the initial question of the thread.
>Boa Noite
>
>Gostaria de gerar minhas 4 tabelas para um arquivo .txt de forma unica,
>exemplo.
>
>tabela1.dbf
>codigo - c - 6
>numero - c - 10 -
>descricao - c - 30
>
>000001 - 0001000100 - titulo reporter 1
>000002 - 0002340560 - contas tipo - 2
>
>aqui gero em um arquivo txt, certo ?
>
>tabela2.dbf
>nome - c - 25
>endereco - c - 30
>cidade - c -10
>
>maria da silva - rua das lamedas - rio de janeiro
>antonio coimbra - rua das almas perdidas - nova friburgo
>
>aqui devo somar no mesmo arquivo .txt acima.
>
>tabela3.dbf
>codigo - c - 3
>tipo - c - 1
>descricao - c - 30
>
>001 - R - aluguel de carros
>002 - C - conta de luz
>
>aqui devo somar no mesmo arquivo .txt
>
>tabela4.dbf
>codigo - c - 4
>descricao - c - 25
>
>0001 - bolacha
>0002 - bala
>0003 - sabonete
>
>aqui devo somar no mesmo arquivo .txt
>
>Obs.: so estou conseguindo gerar os arquivos txts um por um, ae o
>usuario tera que pegar e dar um ctrl + C e depois ctrl + V, necessito
>fazer isso automaticamente.
>
>Alguem pode me ajudar, certo da atenção, obrigado

Também pode concatenar (unir) dois (ou mais) arquivos de texto com FileToStr() e StrToFile().
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform