About the table control...

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

About the table control...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:51 am

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

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: About the table control...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:51 am

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.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: About the table control...

Postby ConvertFromOldNGs » Fri Aug 07, 2009 11:51 am

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.



Return to “General Discussion”

Who is online

Users browsing this forum: Bing [Bot] and 20 guests

cron