Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable combo items
Message
From
07/03/2007 14:09:15
 
 
To
07/03/2007 13:56:27
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01201695
Message ID:
01201707
Views:
12
>>How do you disable an individual item in a drop down combo? (make it visible but not available for selection)
>>
>>Suppose I wanted to step through all the items in the combo and disable those that contain "19" in them.
>>Something like:
>>
>>for i = 1 to this.NumberofElements
>>   if "19" $ this.listItem(i)
>>         && disable it
>>   endif
>>next
>>
>>Thanks
>
>Only if the RowSourceType = 0
>
>for i = 1 to this.NumberofElements
>   if "19" $ this.listItem(i)
>      this.listItem(i) = [\]+this.listItem(i)
>   endif
>next
>
Thanks to the 3 of you. It was easier than I thought.
Previous
Reply
Map
View

Click here to load this message in the networking platform