SearchForText Method (PageGenerator Object)

The SearchForText method searches for the given text, starting on the given page. If the text is found, the PageNumber is set to the number of the page on which it was found. Returns a Boolean value indicating if text was found.

Syntax

Boolean = object.SearchForText (Text, Direction, PageNumber)

Parameters

Direction

Specifies CRSearchDirection (see table below) indicating the direction to sort in.


Constant Value


crAscendingOrder

1


crDescendingOrder

0


crOriginalOrder

2

PageNumber

Specifies the page to start searching in and returns the page number of the first occurrence of the sought-after text.


Text

Specifies the text string being searched for.




Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com