GetRegionId Method

Build 1501 on 14/Nov/2017  This topic last edited on: 23/Mar/2016, at 12:11

Description

Returns the region id.

Available in Fred and Ted.

Syntax

dim iRegionId as Integer = object.GetRegionId()

object

Ted or Fred

Return value

The region of the current article if the active designer is ArticleDesigner, and it returns the region of the layer if the active designer is PageDesigner

Remarks

In versions prior to 1.6, in Fred4, the GetRegionId() and SetRegionId() script commands called always the PageDesigner methods even if there was opened the ArticleDesigner. Now the GetRegionId() method correctly returns the region of the current article if the active designer is ArticleDesigner, and it returns the region of the layer if the active designer is PageDesigner. Moreover, SetRegionId() correctly sets the displaying region in ArticleDesigner and does nothing in PageDesigner.

Context

Main application common dispatcher commands

See also

SetRegionId Method (Fred and Ted)