Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable Combobox item
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00090101
Message ID:
00090108
Views:
28
>Hi,
>
>I have a combobox populated with a view. In some situations, one item should not be selected. I have two options :
>
>1) Disable this item in the combox list.
>2) Check the value entered and give an error message.
>
>In the first case I don't know how to do it.

If your view is not very big:
Select view1
Scan
 IF view1.field1=...  && it should be disabled item
  Thisform.Combo1.AddItem("\"+view1.field1)
 Else                 && it should be enabled item
  Thisform.Combo1.AddItem(view1.field1)
 Endif
EndScan
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform