quarta-feira, 3 de abril de 2019

DICAS 2064 - WINDEV - ARQUIVOS 31 - ARQUIVO TXT IMPORTAR










DICAS 2064 - WINDEV - ARQUIVOS 31 - ARQUIVO TXT IMPORTAR







ErpMatos - TgsSistemas
skype:amarildo.matos.informatica
email: amarildo.matos@gmail.com
whats: 51984197742
Youtube: Amarildo Matos
http://www.amarildomatos.com.br

www.windev.com
https://www.pcsoft.fr/webinaires.htm?p=forumpcs
https://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/page/1.awp
https://www.windev.com/windev/WD-Express.htm
https://www.windev.com/windevmobile/WM-Express.htm
https://groups.google.com/forum/#!forum/amarildowindev
http://windevdesenvolvimento.blogspot.com.br/2017/07/menu-blog.html


https://windevdesenvolvimento.blogspot.com/2019/04/dicas-2064-windev-arquivos-31-arquivo.html



https://doc.windev.com/en-US/?1510016&name=FOR_EACH_Array

https://doc.windev.com/en-US/?3024017&name=ExtractString


=====================================================

BOM DIA,SEJA BEM VINDOS A MAIS UMA VIDEO AULA. ESSA AULA ESTA SENDO GRAVADA NO DIA 03 04 2019. DICA 2064 . A PEDIDO DO ITALAN MOSTRAREI COMO LER UM ARQUIVO TXT COM SEPARADOR

GOOD MORNING, WELCOME TO MORE VIDEO AULA. THIS CLASS IS BEING RECORDED ON 03 04 2019. TIP 2064. TO ITALAN'S REQUEST I WILL SHOW HOW TO READ A TXT FILE WITH SEPARATOR

Buenos días, es bienvenido a otro vídeo AULA. ESTA CLASE ESTA SENDO GRABADA EN EL DÍA 03 04 2019. SUGERENCIA 2064. LA PEDIDA DEL ITALAN MOSTRARI COMO LEER UN ARCHIVO TXT CON SEPARADOR

BON MATIN, BIENVENUE À PLUS DE VIDÉO AULA. CETTE CLASSE EST ENREGISTRÉE LE 03 04 2019. CONSEIL 2064. A LA DEMANDE ITALIENNE, JE MONTRERONT COMMENT LIRE UN FICHIER TXT AVEC SEPARATOR




sTexto is string=[
1|COURO|PR
2|CAMISA|UN
3|TENIS|PAR
]

FOR EACH STRING sLINHA OF sTexto SEPARATED BY CR

    sCODIGO is string=ExtractString(sLINHA,1,"|")
NOME is string=ExtractString(sLINHA,2,"|")
UNIDADE is string=ExtractString(sLINHA,3,"|")

Trace("codigo="+sCODIGO+" nome="+NOME+" unidade="+UNIDADE)

END
















WinDev - Arquivos - 001/... Lista Arquivos - fListFile
WinDev - Arquivos - 002/... Existe Diretório - Verificar Se Existe - fDirectoryExist
WinDev - Arquivos - 003/... Criar Diretorio - FmakeDir
WinDev - Arquivos - 004/... Extrair Dados Arquivos - Extrair Dados - Fextractpath
WinDev - Arquivos - 005/... Renomear Arquivos - FRename
WinDev - Arquivos - 006/... Existe Diretório - Verificar Se Existe - FDirExist
WinDev - Arquivos - 007/... Existe Arquivo - FFileExist
WinDev - Arquivos - 008/... Copiar Arquivos - FcopyFile - >
WinDev - Arquivos - 009/... Adicona Texto num arquivo - FAddText ( )
WinDev - Arquivos - 010/... Espaco Diretorio - FDirSize/ LengthtoString
WinDev - Arquivos - 011/... Informações hd - FDriveInfo -
WinDev - Arquivos - 012/... Elimina Arquivos - FDelete -
WinDev - Arquivos - 013/... Drive está Ok - FDriveReady -
WinDev - Arquivos - 014/... Imagen Procura - FImageSelect
WinDev - Arquivos - 015/... Abrir-Modificar-Gravar-Fechar fOpen/fReadLine/fClose/fSaveText
WinDev - Arquivos - 016/... Lista Discos - FListDisk
WinDev - Arquivos - 017/... Lista Diretorio - FListDirectory
WinDev - Arquivos - 018/... Ler Arquivo - FLoadText
WinDev - Arquivos - 019/... Ler Arquivo e Colocar Tabela - FLoadText
SEPARAR NOME ARQUIVO - - ARQUIVOS - 020 - AULA 1189
PROCURAR ARQUIVO - SELECT - ARQUIVO 021 - AULA 1190
DIRETORIO - LE ARQUIVOS - ARQUIVO 022- AULA 1268
Criar Diretorio - DICAS 1738 - PUBLICA - WINDEV ARQUIVOS 23 - FMakeDir - 
fDirectoryExist - DICAS 1740 - PUBLICA - WINDEV ARQUIVOS 24 - 



Teste

Teste
teste