Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox problem
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01077137
Message ID:
01077147
Views:
36
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.
>	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.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform