Description
Sets the region id in Ted and does nothing in Fred (as region id in Fred is a property of the current layer).
Available in Fred and Ted.
Syntax
dim errorcode as Integer = object.SetRegionId(id) |
object
Ted or Fred
id
region id
Return value
Error code
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