Cancel
Showing results for 
Search instead for 
Did you mean: 

TableFile maxYdim issue

Legend
Legend

He,

 

In a tableFile that have a maxYdim of 10, I can append 11 and more row.

 

Please find models attached.

 

Regards,

 

rpinon

2 REPLIES 2

Re: TableFile maxYdim issue

Phenom
Phenom

It seems the way, you posted.

 

If you restrict the tables row dimension - in your model 10 (rows)

 

the appended rows ( after row 10) will not be displayed.

 

If you redimension the rows to e.g. 20, you will see the appended rows with contents.

 

Therefore the append method is not restricted by the set table maxYdim value.

 

I meen append meens, you want to add something to the end.

 

In this case the maxYdim value has to be incremented.

Re: TableFile maxYdim issue

Siemens Phenom Siemens Phenom
Siemens Phenom

The appended data is there but it cannot be accessed!

 

TableFile.maxYDim := 10

var i : integer
for i := 1 to 11
TableFile.appendRow(i)
next

print "Value in last Row: " + TableFile[1, i] -- this will open the debugger

TableFile.maxYDim := i -- solution: set the maxYDim to the actual value first

print "Value in last Row: " + TableFile[1, i] -- now the data is accessible

 

 

On the other hand, setting the maxYDim after appending the data to a lower value erases the data from this row on:

 

TableFile.maxYDim := 10

for var i := 1 to 11
TableFile.appendRow(i)
next

TableFile.maxYDim := 10 -- deletes data in row 11 and higher