PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Importing into Tables
Importing into Tables
Iniciado por Mikec, 30,jun. 2005 18:11 - 2 respuestas
Publicado el 30,junio 2005 - 18:11
This may seem a very elementary question. I want to import data from user selected files directly into a table. I can see how to do this via a declared HF file using hImportText but can it be done direct into a table?
TIA
Mikec
Publicado el 30,junio 2005 - 19:34
Hello Mikec,
you can use a memory table and read the file with freadline(....
and then tableadd(table_name,.......)
Christoph

This may seem a very elementary question. I want to import data from user selected files directly into a table. I can see how to do this via a declared HF file using hImportText but can it be done direct into a table?
TIA
Mikec
Publicado el 01,julio 2005 - 11:39
Thanks Christoph,
I have a text string from fReadLine, TextIn="Col1,2,3,4"
Using TableAddLine(TABLENAME,...) how do you substitute the required "value1","value2","value3" etc with one string variable, TextIn, containing all those values?
I used an alternative approach, extracting the elements one at a time and directly assigning them to a table cell in a loop.
Mikec
Hello Mikec,
you can use a memory table and read the file with freadline(....
and then tableadd(table_name,.......)
Christoph

This may seem a very elementary question. I want to import data from user selected files directly into a table. I can see how to do this via a declared HF file using hImportText but can it be done direct into a table?
TIA
Mikec