Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disable a item in a Combo Box!
Message
 
 
À
30/06/1998 20:41:31
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00112483
Message ID:
00113236
Vues:
67
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform