Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine whether an item is disabled
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00796336
Message ID:
00796430
Views:
18
Ali,

Since disabled items have a different forecolor property (assuming it hasn't been changed to the same value as the enabled items) from an enabled one, perhaps you can capture the value of the DisabledItemForeColor for the combo and then iterate through the list to determine which items are disabled based on this property.

LOCAL lnColor, i
lnColor = Combo.DisabledItemForeColor

* Unchecked code

FOR i = 1 TO Combo.ListCount
IF Combo.List[i].ItemForeColor == lnColor && Reflects display order
* Item disabled
ELSE
* Item enabled
ENDIF
ENDFOR

Hope this helps

John
Previous
Reply
Map
View

Click here to load this message in the networking platform