USUÁRIO:      SENHA:        SALVAR LOGIN ?    Adicione o VBWEB na sua lista de favoritos   Fale conosco 

 

  Fórum

  Visual Basic
Voltar
Autor Assunto:  Carregar TXT numa variável
Eriston
SÃO PAULO
SP - BRASIL
ENUNCIADA !
Postada em 29/10/2004 11:47 hs            

Olá pessoal,

 

Gostaria de saber como carregar o conteúdo de um arquivo TXT numa variável.

 

Tenho a seguinte situação: tenho vários arquivos txt, e neles tenho várias instruções SQL (exportação de banco de dados SQL Server), preciso migra tudo pra Access. Fazendo essa migração pelo próprio Access seria uma tarefa demorada, pq ele só consegue executa uma instrução de cada vez, e num arquivo há várias.

 

Com uma aplicação em Vb pretendo ler o arquivo txt e colocar uma função q pegue parte por parte as instruções, uma instrução sempre termina com ponto e vírgula(;) seria fácil identificar onde começa e termina uma instrução, dessa forma posso pegar uma a uma e mandar executar.

 

+ o mistério é: como carregar um arquivo txt numa variável???

 

Muito Obrigado

 

t+

 

Eriston

   
Martini
Pontos: 2843 Pontos: 2843
PAROBÉ
RS - BRASIL
ENUNCIADA !
Postada em 29/10/2004 13:14 hs         
  Screen.MousePointer = vbHourglass
  Dim ABC As String
  Open "U:Meus DocumentosTabelasMenusFin.txt" For Input As #1
  Do While Not EOF(1)
    Line Input #1, ABC'carrega conteudo do arquivo para a variavel (obs.: linha por linha)
  Loop
  Close #1
  Screen.MousePointer = vbNormal
  MsgBox "Ok"
 
   
MasterPrint
MIRANDOPOLIS
SP - BRASIL
ENUNCIADA !
Postada em 31/10/2004 08:19 hs            
Pra vc separar as instruções, como vc mesmo diz que terminam em (;), então utilize a função SPLIT do VB, que te dará o resultado esperado.

Feliz aquele que passa o que sabe e aprende o que ensinaEmoçõesEmoçõesEmoções
   
alex
não registrado
Postada em 16/10/2026 02:08 hs   
https://sites.google.com/view/vizio-tv-guide/faq/vizio-smart-tv-stuck-on-setup-screen can help users prepare compatible VIZIO televisions for Smart TV use. Follow the displayed setup instructions, establish network connectivity, and complete any requested registration steps.
Setting up a new VIZIO TV starts smoothly with https://sites.google.com/view/viziotvhelpline/how-to-set-up-a-vizio-smart-tv Follow the configuration wizard, connect your internet connection, register your television, and complete the recommended setup options.
https://sites.google.com/view/viziotvhelpline/how-to-activate-vizio-tv-using-setup-code is designed to help users navigate the early stages of VIZIO television configuration. Follow each screen, connect Wi-Fi, provide requested details, and finish registration.
Prepare your VIZIO Smart TV using https://sites.google.com/view/viziotvhelpline/frequently-asked-questions-faq Follow the initial instructions, connect your home network, complete device registration, and configure available settings for a personalized experience.
https://sites.google.com/view/vizio-tv-guide/faq/connect-phone-to-vizio-smart-tv can make VIZIO television installation more manageable. Follow the on-screen process, select appropriate preferences, connect your network, and complete registration before exploring available features.
     
alex
não registrado
Postada em 16/10/2026 02:08 hs   
Access https://sites.google.com/view/viziotvhelpline to begin configuring your new VIZIO television. Keep your internet details available, follow setup instructions, and complete the required device registration process.
https://viziohelpguide.blogspot.com/2025/08/get-best-out-of-your-vizio-tv-with.html provides useful guidance for users starting a VIZIO Smart TV. Connect the television to power, establish network access, follow the prompts, and finish initial configuration.
Start enjoying your VIZIO television by completing setup through https://all4webs.com/viziohelpguide/home.html Follow the setup screens, connect Wi-Fi, register the device, and complete applicable configuration choices.
https://all4webs.com/viziohelpguide/vizio-tv-setup.htm can help Min-time users understand the essential steps for preparing a VIZIO TV. Follow the on-screen instructions, connect your network, and complete registration for connected functionality.
Use https://all4webs.com/viziohelpguide/suppot-vizio-com.htm  as a starting point for VIZIO Smart TV configuration. Follow the displayed instructions, connect your internet service, register your device, and complete the setup sequence.
     
alex
não registrado
Postada em 16/10/2026 02:09 hs   
https://sites.google.com/view/viziotvsetup  supports a straightforward approach to VIZIO TV installation. Prepare your television and network information, follow each prompt, and complete registration before exploring Smart TV features.
For convenient VIZIO TV setup, https://sites.google.com/view/viziotvsetup/vizio-com-tv-setup/connecting-your-vizio-tv-to-wi-fi offers a practical starting point. Follow the configuration instructions, establish internet access, complete registration, and review the television's available settings.
https://sites.google.com/view/viziotvsetup/vizio-com-tv-setup/finding-and-entering-the-setup-code helps new VIZIO users navigate initial television configuration. Connect the device, follow the setup wizard, select preferences, establish Wi-Fi, and complete the registration process.
Configure your VIZIO television efficiently through https://sites.google.com/view/viziotvsetup/vizio-com-tv-setup/using-vizio-comsetup-on-mobile Follow the instructions displayed on screen, connect your network, register your TV, and complete the initial setup requirements.
https://sites.google.com/view/viziotvsetup/vizio-com-tv-setup can guide users through setting up compatible VIZIO Smart TVs. Follow the setup prompts, connect your home internet, register the television, and complete configuration before streaming.
     
Página(s): 1/4      PRÓXIMA »


Seu Nome:

Seu eMail:

ALTERAR PARA MODO HTML
Mensagem:

[:)] = 
[:P] = 
[:(] = 
[;)] = 

HTML DESLIGADO

     
 VOLTAR

  



CyberWEB Network Ltda.    © Copyright 2000-2026   -   Todos os direitos reservados.
Powered by HostingZone - A melhor hospedagem para seu site
Topo da página