Table create with no data

tvrman

Member
Licensed User
For my current project, i have serveral tables,
if i create a new project i also create a new empty table.
(later i will add data to it.)

Table3.AddRow ("", "" , "", "", "")
Table3.SaveCSV ("Table1.CSV",",",False)

The problem which i had is that when i open my project there
is one blank line in the table :sign0161:

Is there an way to create an table without any data on it?,
just create only the filename.csv for example ?

(the idea is that i need to setup some tables for later use, the files needs exists before open it,
like access you create the table before adding data to it.)
 
Last edited:

JJM

Active Member
Licensed User
Hi,

Try that:

Table3.OpenCSV ("Table1.CSV",",",True).

I don't test it but I think so it's only the empty header which is open and there is no data.

Bye

JJ M
 

RandomCoder

Well-Known Member
Licensed User
You could always set the visible property to false until after the data has been loaded to the table.

Regards,
RandomCoder.
 

specci48

Well-Known Member
Licensed User
Table3.OpenCSV ("Table1.CSV",",",True).
Additionally to this you have to code
B4X:
Table3.SaveCSV ("Table1.CSV",",",[B]True[/B])
Now you don't need to add a blank row before saving the table.


specci48
 

tvrman

Member
Licensed User
Additionally to this you have to code
B4X:
Table3.SaveCSV ("Table1.CSV",",",[B]True[/B])
Now you don't need to add a blank row before saving the table.


specci48

yes just what i was looking for, i have not read the manual very
well :signOops:

Thanks
 
Top