Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable an item in VFP5 listbox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00246210
Message ID:
00246338
Views:
15
>What is the best way to disable an item from a listbox in VFP5. I have found if you insert "\ " at the beginning of the item contents, it will disable the text. In NT4-SP5, you must include the space after the "\".
>
>Example:
>
>thisform.LIST1.additem("\ "+alltrim(TESTPATH))
>
>This will disable this item as it is inserted, but this seems flakey.
>
>Thanks!
>Daryl F

Daryl,

That is how it is done. Although I find disabled items in a list sort of counter productive to the whole idea of a list. If we are adding the items and know to disable one, why not leave it out of the list altogehter?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform