Page 1 of 1

About the table control...

Posted: Fri Aug 07, 2009 11:51 am
by ConvertFromOldNGs
by JADE Kid - Ray Hidayat >> Thu, 13 Apr 2000 6:36:25 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.

What's wrong?

--
Ray Hidayat
JADE Kid - 2000
www.jadekids.com

Re: About the table control...

Posted: Fri Aug 07, 2009 11:51 am
by ConvertFromOldNGs
by Dean Cooper >> Thu, 13 Apr 2000 6:57:05 GMT

Ray,

I assume you're writing a line of code like:

table.rowHeight := 20;

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;

Same goes for columnWidth (there's no columnHeight property).

Dean.

Re: About the table control...

Posted: Fri Aug 07, 2009 11:51 am
by ConvertFromOldNGs
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.