Previous topic

DocSaveModified

Next topic

DocSetDataFileList

This Page

DocSelectPageΒΆ

DocSelectPage activates the given page and returns the handle.

hPage = DocSelectPage(hDoc, nPage)
hPage = DocSelectPage(hDoc, nPage, bUpdateFields)

Return Value

hPage is the page handle. In case of an error hPage is 0.

Parameters

hDoc

Identifies the document.

nPage

nPage is the index of a page, the index starts with 1.

bUpdateFields

If bUpdateFields is TRUE (1) the field functions will be updated. This can slow down the function significantly. Default value is TRUE (1).

Example

AppGetActiveDocument();
nPages = DocGetPageCount(hDoc);
hvData = 0;
for (i in 1:nPages) {
    hActivePage = DocSelectPage(hDoc, i);
    if (hActivePage == 0) {
        MessageBox("Cannot display page");
        continue;
    }
    // Do something with hActivePage...
}

History

Version Description
5.30.0 New Parameter bUpdateFields.

id-1898806