Consider using something like for i in range(Rtable.getRowCount())
at the top of the loop, and if i<(Rtable.getRowCount()-1)
to allow for differing table sizes.
1 Like
While we’re here, it’s a bit late now, but you can also convert BasicDataset
s into PyDataSet
s which will make your life so much nicer when manipulating them, as you can use pythonic formats to read and write to them.
You can take a regular dataset and use this to convert it:
pds = system.dataset.toPyDataSet(ds) # pds = pyDataSet
pds[0]['columnA'] = "new value!"
Then you can convert it back with:
ds = system.dataset.toDataSet(pds)
1 Like