Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox And Textbox
Message
From
15/09/1999 16:54:26
 
 
To
15/09/1999 15:51:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00264964
Message ID:
00265207
Views:
21
Hi Mo.

Sure. Same code, substitute

.List(i,nCol)

for

.ListItem(i)

Where nCol = desired column number.

>
>If the list is multi-column, is there a way to search on the second column instead of teh default "first column"??
>
>Thanks
>Mo
>
>>Carmen:
>>
>>Try this code in the InteractiveChange event of the textbox. Change the Control names as appropriate:
>>
>>IF !EMPTY(THIS.Value)
>>   WITH THIS.Parent.List1
>>   	FOR i = 1 TO .ListCount
>>      	IF UPPER(ALLT(THIS.Value)) = ;
>>           LEFT(UPPER(.ListItem(i)),LEN(ALLT(THIS.Value)))
>>         	.Selected(i)=.T.
>>	         EXIT
>>   	   ENDIF
>>	   ENDFOR
>>	ENDWITH
>>ENDIF
>>
>>>How to link the textbox to listbox? what I mean is when I key in something in the textbox, then record in the listbox will highlighted and point to that particular record that what i have entered.
>>>Thanks
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Reply
Map
View

Click here to load this message in the networking platform