Help home › The Family Historian API › Objects › Section › SetOwner

Section

SetOwner

Description

Sets the "owner" or "owners" of a section.  This value is used to determine which records to display in the "Page Records" list, in the panel on the right-hand side of the Reports Window and the Book Window when the section is showing in a displayed page.

Minimum FH Version

8

Syntax

sn:SetOwner(ptrItem [, ptrItem2])

Parameters

ptrItem
Pointer Item: the item that will be the owner of the section.  Is not treated as an error, but this value is likely to be ignored if not a record.
ptrItem2
Pointer Item: Optional.  A second item that will be the co-owner of the section.  Again, is not treated as an error, but this value is likely to be ignored if not a record.

Return Value

none

Remarks

Example
sn:SetOwner(pi)