Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox problem
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Combobox problem
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01077137
Message ID:
01077137
Vues:
76
Hi everybody,

I have the following code in my combobox valid method:
local lcPK
lcPK = this.value
with this.parent
	.cboCarrier_Branches.rowsource = ""
	.Carrier_Branches_Merge_biz1.Set_fk(m.lcPK)
	.Carrier_Branches_Merge_biz1.requery(.t.,'crsCarrier_branches_All_merge')

	.cboCarrier_Branches.rowsourcetype = 2
	.cboCarrier_Branches.rowsource = 'crsCarrier_branches_All_merge'
	.cboCarrier_Branches.requery()
	.cboCarrier_Branches.enabled = .t.
	do case
	case reccount('crsCarrier_branches_All_merge') = 1
		=ErrorMsg("The carrier " + alltrim(.cboCarriersToSelect.displayvalue) + ;
			" has only 1 branch")

	case reccount('crsCarrier_branches_All_merge') = 0
		=ErrorMsg("The carrier " + alltrim(.cboCarriersToSelect.displayvalue) + " does not have branches")
	endcase
	.cboCarriers.enabled = .f.
endwith
The problem is, that once I selected the value and want to select another and try to quickly type some letters, it fires the message right away for only the first letter I typed. What should I change to make it react on all the letters I quickly type and don't get me message until I really selected the value?

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform