Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find and highlight word in a word document
Message
 
 
À
08/10/2009 08:09:12
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01428224
Message ID:
01428225
Vues:
51
You can use HitHighlight() method of the Find object
    With .Selection.Find
      .HitHighlight ("Whatever")
Syntax: expression.HitHighlight(FindText, HighlightColor, TextColor, MatchCase, MatchWholeWord, MatchPrefix, MatchSuffix, MatchPhrase, MatchWildcards, MatchSoundsLike, MatchAllWordForms, MatchByte, MatchFuzzy, MatchKashida, MatchDiacritics, MatchAlefHamza, MatchControl, IgnoreSpace, IgnorePunct, HanjaPhoneticHangul)



>i have an application which keeps tack of documents among other things.
>one of the routine queries the database for documents containing a list of word like 'finance' and 'meltdown' and it will return a handfull of .docs with those words in it in a grid.
>the use can select a line in the grid and the program will open the word doc in MSWord.
>
>now it woud be helpful if alloccasions of the words 'finance' and 'meltdown' would be highlited.
>
>this code:
< snip >
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform