Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00352936
Message ID:
00352959
Vues:
29
Hi Phil,

Do you mean that your combo is dropdown combo (style 0)? How about KeyPress event in this case?

>I have a combo with incremental search on a form. In the interactive change event, I have this code:
>
>
LOCAL l_cSeekDoc
>WITH THISFORM
>	.LOCKSCREEN=.T.
>	l_cSeekDoc=.cbocode.VALUE
>	SELECT DOCUMENT
>	SEEK l_cSeekDoc
>	.txtrmrev.value=alltrim(DOCUMENT.revision)
>	.txtrmname.value=alltrim(DOCUMENT.TITLE)
>	This.value=l_cSeekDoc
>	SELECT devdata
>	.txtrmrev.readonly=.t.
>	.txtrmname.readonly=.t.
>	.txtQuantity.setfocus()
>	.REFRESH()
>	.LOCKSCREEN=.F.
>ENDWITH
>
>It works as I had hoped if the user chooses the cbocode with the mouse...the other information is placed in the appropriate fields and the curser is moved to the quantity.
>
>But this doesn't have the desired effect when a user tabs into the cbocode field and tries to key in the code number. How can I make this work? I would like either data entry approach to work.
>
>TIA,
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform