Important: The information in this document is obsolete and should not be used for new development.
AssociateSection
If a user saves a document that contains sections under another name (using Save As) or pastes a portion of a document that contains a section into another document, use theAssociateSection
function to update the section's alias record.
FUNCTION AssociateSection (sectionH: SectionHandle; newSectionDocument: FSSpecPtr): OSErr;
sectionH
- A handle to the section record for a given section.
newSectionDocument
- The volume reference number, directory ID, and filename of the new document.
DESCRIPTION
TheAssociateSection
function callsUpdateAlias
on the section's alias record.RESULT CODES
noErr 0 No error paramErr -50 Invalid parameter SEE ALSO
For information on theUpdateAlias
function, see the chapter "Alias Manager" in Inside Macintosh: Files.