Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

IndexOf – PB Docs 2022 – PowerBuilder Library

IndexOf – PB Docs 2022

IndexOf

PowerScript function

Description

Gets the index of a given object.

Applies to

PDFDocument object in Objects and Controls

PDFPage object in Objects and Controls

Syntax

If calling the function on a PDFDocument object in Objects and Controls:

Argument

Description

page

The name of the PDFPage object in the PDFDocument.

If calling the function on a PDFPage object in Objects and Controls:

Argument

Description

content The name of the PDFContent object in the PDFPage
object.

Return value

Long. Returns 1 if it succeeds and -1 if it fails. For more errors,
see the Error Codes.

Usage

Call the function to get the index of a PDFPage object in a
PDFDocument object, or the index of a PDFContent in a PDFPage
object.

The index of the objects are determined by the orders they are
added, starting at 1. If one object is removed, the indexes of the
remaining objects will be reordered.

Examples

This example gets the index of the specified PDFPage object in the
current PDFDocument object:

See also

PDFDocument objects:

AddPage

Clone

GetPage

GetPageCount

GetTableOfContents

ImportDataWindow

ImportPDF

ImportRichTextEdit

InsertPage

RemovePage

Save

SearchObject

SetTableOfContents

PDFPage objects:

AddContent

Clone

GetContent

GetContentCount

GetHeight

GetWidth

ImportContent

RemoveContent

SetHeight

SetPageSize

SetWidth


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x