General information
Category:
Coding, syntax & commands
Title:
Disabeling list-items from rowsource
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only