The combo box i loaded with a list of items that some items will have a "/" before to disable them. Depending on many things the same combo box will have the same items but some will be disabled inside.
combobox:
- "/item1" && Disabled in combobox
- "item2"
- "item3"
- "/item4" && Disabled in combobox
i need to verify if the first combobox item is enabled because sometime the form is loaded and the combobox is placed on the first item even if it is disabled.
Hi,
To varify check only for (citem,1)="\" will only work if you never have to add an item which begins with a \. You should also check for left(cItem,2)="\]".
Since you most probably populate your combo with an array, you could also consider to add an extra dimension to your array "disabled" and populate that column with .T. if condition is true and check your array column on disabled=.f.
The combo box i loaded with a list of items that some items will have a "/" before to disable them. Depending on many things the same combo box will have the same items but some will be disabled inside.
If that is what you want, then why are you 'populating' your ComboBox with Values?
Why not set the ComboBox up with its RowSourceType = ALIAS and then just manipulate the Records (DELETE/RECALL) in the associated Cursor/Table as needed (example: SET FILTER TO !DELETED()) to Enable/Disable the 'rows' shown in the ComboBox?
It would be much easier than depending on an ESC character in the Values data itself.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.