Hi Andrew,

Should getData() and getDataArray() work on a text table?

I tested this on windows and linux using 2.01 release candidates.

Create a text document and add a single text table.

Add some data to the text table. Use at least two rows and two columns.

Now, run this macro

Dim oTable

oTable = Thiscomponent.getTextTables().getbyIndex(0)

Dim oData() : oData() = oTable.getDataArray()

Dim a()     : a() = oData(1)

Print a(1)

MsgBox Join(a(), CHR$(10))

Print oTable.getCellByPosition(1, 1).getString()


The returned data is ALWAYS 0. Now, change getDataArray() to getData(). The returned values are still zero. What am I missing?

did you ensure that the cells are formatted as numbers ?

Regards

Stephan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to