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 the AssociateSection 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
The AssociateSection function calls UpdateAlias on the section's alias record.
RESULT CODES
| noErr | 0 | No error |
| paramErr | -50 | Invalid parameter |
SEE ALSO
For information on the UpdateAlias function, see the chapter "Alias Manager" in Inside Macintosh: Files.