Page 1 of 1

writeTable() - text mode not working?

Posted: Sat Sep 16, 2017 11:31 pm
by peceha
Hi,

Code: Select all

myTable={
	portNo	=5912,
	serverIP	= "192.168.1.4"
}
WriteTable(1,myTable,txtmode=True,nobrk=False)
gives me such file:
HWT0 serverip 192.168.1.4 portno@ยท
and:

Code: Select all

WriteTable(1,myTable)
gives exactly the same result.

Am I doing anything wrong?

Re: writeTable() - text mode not working?

Posted: Sun Sep 17, 2017 9:20 am
by jPV
Because those extra options aren't in a table with WriteTable (like with some other functions), you just need to pass values for them.

This is how it should work:
WriteTable(1,myTable,True,False)

Re: writeTable() - text mode not working?

Posted: Sun Sep 17, 2017 9:30 am
by peceha
:oops:
Thanks !!! - now the resulting file looks much different.