>Sorry, one question though. After using that code, it works fine, but how can I "test" to see if an item is disabled? I tried to use:
>
>
IF LEFT(Object.List(Index), 1) == "\"
>
>Unfortunatly the value of the item always says is doesn't have a preceeding "\" even if it does.
You can use ItemData array propery to mark disabled items.
PROCEDURE cbolistitem.Init
WITH This
.AddItem( 'Apple' )
.AddItem( 'Banana' )
.AddItem( '\Carrot' )
.ItemData(.NewIndex) = 1
.AddItem( 'Orange' )
ENDWITH
ENDPROC
....
IF Object.ItemData(Index) = 1
...
--sb--