Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Highlight in Listbox
Message
De
17/09/2004 09:34:59
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Highlight in Listbox
Divers
Thread ID:
00943316
Message ID:
00943316
Vues:
65
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform