by
JADE Kid - Ray Hidayat >> Sat, 15 Apr 2000 22:23:15 GMT
Hi! I am just trying to work the table control, and whenever I want to set the .rowHeight or .columnHeight property, it tells me, cannot
assign to exculsive collection error 6086.
Ray,
I assume you're writing a line of code like:
table.rowHeight := 20;
yes I do!
This doesn't work because the rowHeight property is an IntegerArray, with each entry in the array corresponding to the height of a row in the table. So the above line is trying to assign 20 to an array reference, which the compiler correctly objects to.
You need to set the array element corresponding to the row you want. For example, to set the height of row 1, use:
table.rowHeight[1] := 20;
I knew that! It was just that I thought once you set the .row and .column things, you don't have to do anything else!
Same goes for columnWidth (there's no columnHeight property).
Dean.