Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabeling list-items from rowsource
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Disabeling list-items from rowsource
Miscellaneous
Thread ID:
00722550
Message ID:
00722550
Views:
60
Hi,

Suppose I have the following table:
table1
------
id name active
1 'Erik' .T.
2 'John' .T.
3 'Simon' .F.
4 'Eddie' .T.

Now I have a listbox with the rowsource property set to:
'IIF( !table1.active, "\", "" ) + table1.name'

and rowsourcetype set to 6 (Fields)

I want Simon to be in the listbox, but not selectable (that is, disabled).
I know you can disable items by putting a '\' in front of it.

But above code doesn't work. My listbox displays:
Erik
John
\Simon
Eddie

All items are enabled.

How can I disable Simon, WITHOUT manually adding all the items to the list (in the init or refresh) with addListItem?
Next
Reply
Map
View

Click here to load this message in the networking platform