Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable A List Row
Message
From
06/04/2000 08:24:25
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00356074
Message ID:
00356197
Views:
14
>How do I disable a row in a MULTICOLUMN listbox. For a single
>column listbox, you can use:
>
> .AddItem("\" + cText)
>
>The slash does not seem to have any effect on a multi-column
>list box

The basic idea of a listbox or combobox is that all the items in it are valid choices. So you're not really supposed to be able to disable items. As you've learned, you can disable an item with certain RowSourceTypes by preceding it with a "\". However, you should really rethink this strategy from a user interface point of view. Users expect to be able to choose anything in a list.

Okay, now that I've said that, you can disable the other columns in a listbox by using the "\" in front of the entry with the AddListItem method, which is what you need in order to populate those columns.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform