Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Box and Incremental Search
Message
De
08/11/2004 04:15:03
 
 
À
09/10/2004 07:26:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00950015
Message ID:
00959083
Vues:
17
Dear Marcia,
for incremantal search of a combobox:
in method of keypress :
IF  BETWEEN(nKeyCode, 32, 256)
	FOR  x = 1 TO  this.ListCount
		IF UPPER(SUBSTR(this.list(x), 1, this.selstart+ 1)) = ;
		   UPPER(SUBSTR(this.text, 1, this.selstart)+chr(nKeyCode))
			nCurPos = this.selstart + 1
			this.Value = this.list(x) 
			this.SelStart = nCurPos
			this.SelLength = len(allt(this.list(x))) - nCurPos
			NODEFAULT 
			EXIT 
		ENDIF 
	NEXT  x
ENDIF 

in interactivechange:
this.ptogrammaticchange()

in programmatic Change:
this.refresh
good luck from Turkey
Mehmet Silli- msilli@netbulmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform