Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Highlight in Listbox
Message
From
17/09/2004 09:34:59
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Highlight in Listbox
Miscellaneous
Thread ID:
00943316
Message ID:
00943316
Views:
66
Dear Sir,

There is text1 and list1 on form. To search any name I write characters in text1.value, for example if want to search all of the names that contains "Eric" then I write Erice in text1.value. As a result all matches display in list1 such as Eric den doop, Danial Eric etc.

Now the question is to highlight all matching word "Eric" in listbox.
Highlight mean select or color change or fontbold of matching word in every recrod of listbox.
Is it possible?

Following are the codes which I use
*---------------------------------------------------
SNAME=ALLTRIM("%")+ALLTRIM(THISFORM.TEXT1.VALUE)+ALLTRIM("%")

SELECT CODE,DESC FROM MASTER;
	WHERE LEN(ALLTRIM(STR(CODE)))=6 .AND. DESC LIKE SNAME;
	ORDER BY DESC;
	INTO TABLE D:\System\TEMP\TEST

THISFORM.LIST1.ROWSOURCE = "TEST"
THISFORM.REFRESH
*---------------------------------------------------

Please help
Next
Reply
Map
View

Click here to load this message in the networking platform