Re: set_item_instance_property

From: DanHW <danhw_at_aol.com>
Date: 10 Dec 1999 00:33:08 GMT
Message-ID: <19991209193308.01219.00000186_at_ng-fy1.aol.com>


>Forms 5.0
>
>In a tabular form showing 15 records of a block, I want to change the
>background color of one of the rows or one of the items in one of the rows.
>I'm not referring to the current row.
>I've tried using the set_item_instance_property but can't get it to work.
>
>set_item_instance_property('block1.item1',VISUAL_ATTRIBUTE,2,'VA_BACKGROUND_
>RED');
>
>I was expecting item1 in the 2nd row to have a red background but I get a
>message stating that the property is invalid, however, the item does have a
>visual_attribute property and the help states that visual_attribute is a
>valid property to set using this built-in.
>
>I've actually never got the set_item_instance_property built-in to work.
>
>Any help will be appreciated.
>
>Brian
>

There is an error in the documentation - the arguments for attribute and row number are reversed in the description of the procedure. Look at the example, I believe they are correct there.

Dan Hekimian-Williams Received on Fri Dec 10 1999 - 01:33:08 CET

Original text of this message