PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.setup > Find text and determine page
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
ms.sqlserver.setup Questions about SQL Server.

Find text and determine page

Réponse
 
LinkBack Outils de la discussion
Vieux 24/04/2008, 05h18   #1
nnn
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Find text and determine page

I've found all kinds of messages that say this should work:

Selection.Find.ClearFormatting
With Selection.Find
.Text = "SomeUniqueValue"
End With
Selection.Find.Execute
i = selection.Information(wdActiveEndPageNumber)

i should be page 3 if SomeUniqueValue is found on page 3. But I don't
get results like this. i is usually the wrong page, and when I check the
value of selection.text, it's one of those charming square characters.

I need to run a couple of searches for text in a row, and determine the
page number each 'find' was on. No matter what order I run the test in,
results are off. This should be so simple...
  Réponse avec citation
Vieux 24/04/2008, 17h32   #2
nnn
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Find text and determine page

In article <MPG.22799bda2387171e9896c6@msnews.microsoft.com >,
nnn@nnn.nnn says...
> I've found all kinds of messages that say this should work:
>
> Selection.Find.ClearFormatting
> With Selection.Find
> .Text = "SomeUniqueValue"
> End With
> Selection.Find.Execute
> i = selection.Information(wdActiveEndPageNumber)
>
> i should be page 3 if SomeUniqueValue is found on page 3. But I don't
> get results like this. i is usually the wrong page, and when I check the
> value of selection.text, it's one of those charming square characters.
>
> I need to run a couple of searches for text in a row, and determine the
> page number each 'find' was on. No matter what order I run the test in,
> results are off. This should be so simple...
>

Oops wrong ng!
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h27.


Édité par : vBulletin® version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08100 seconds with 10 queries