Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox problem
Message
De
12/12/2005 11:02:41
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01077137
Message ID:
01077156
Vues:
44
>I'm not sure I want to move the code into LostFocus. I also found that _incseek setting has no effect on the behavior (as I suspected). I'm not sure if there is a solution for the problem, I'm afraid - there is not.
>
>>LostFocus() ?
>>
>>>
>>>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.

IF NOT CHRSAW(0.1) 
>>>	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
ENDIF

>>>	.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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform