Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List/Combo Question
Message
 
To
05/06/1998 14:31:49
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00105212
Message ID:
00105309
Views:
47
>>>Is there a way to disable listbox or combobox elements? I've seen the help files and they specify several DisabledItem.. properties, but I don't see a method or property that will disable an item.
>>>TIA
>>
>>Placing "\" in front of item disables it.
>>
>>say, you have listbox with array as a source,
>>so if you want to disable 3rd item itn the listbox
>>
>>IF something
>>thisform.list1.listItem(3)="\"+ myArray(3)
>>endif
>>
>>Nick
>
>Thanks! Works like a charm. BTW, where did you find this info?

Can't say for sure now, I knew it since VFP3 :), but it was also mentioned on UT several times.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform