Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable a item in a Combo Box!
Message
 
 
To
30/06/1998 20:41:31
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brazil
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00112483
Message ID:
00113236
Views:
64
No one has recommended using an array so I'll suggest it.

I think you should create a subclass of combobox, add a custom property maValues[1]. Populate it in a custom method using a select:

select codigo, nome ;
from lote ;
into array this.maValues ;
order by 1

You can now step through the array and add \ to the front of the items that are not available for the current record. Issue a this.Requery() so the cbo will adjust itself based on the disabled items.

>Hello Bill, Cetin and Edward i thank to you again, but now my problem is how i do to add a item with 2 colunms
>Codigo and Nome
>
>I try This.AddItem(Lote.Codigo, Lote.Nome) and i didn't get
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform