Action
Returns the number of the specified page.
Syntax
iPage = pagelist.FindPage(sPage)
Variable
|
Description
|
iPage
|
The index of the page if found, or 0 if not found. The index is relative to all pages in the pagelist.
INTEGER.
|
sPage
|
The page to find.
STRING. A forward slash is optional before the
sPage when you are working with Windows, for example
FindPage("/Begin").
|
Notes
FindPage returns the index of a page, given its text. The text of a page is the label that appears on the page’s folder tab, if any. The returned index is one-based.
For more information about specifying
sPage, see the
PageList class.
Example
Verify(MyDialog.MyPageList.FindPage("foo"), 4)