Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box and Incremental Search
Message
From
08/11/2004 04:15:03
 
 
To
09/10/2004 07:26:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00950015
Message ID:
00959083
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform