Important: The information in this document is obsolete and should not be used for new development.
GetLastEditionContainerUsed
Use theGetLastEditionContainerUsedfunction to get the default edition to display. This function allows a user to easily subscribe to the data recently published.
FUNCTION GetLastEditionContainerUsed (VAR container: EditionContainerSpec): OSErr;
container- If the
GetLastEditionContainerUsedfunction locates the last edition for which a section was created, thecontainerparameter contains its volume reference number, directory ID, filename, and part, and returns anoErrresult code. (The last edition created is associated with the last time that your application or another application located on the same machine used theNewSectionfunction.)DESCRIPTION
If the last edition used is missing, theGetLastEditionContainerUsedfunction returns anfnfErrresult code, but still returns the correct volume reference number and directory ID that you should use for theNewSubscriberDialogfunction.Pass the information from the
GetLastEditionContainerUsedfunction to theNewSubscriberDialogfunction.RESULT CODES
noErr 0 No error fnfErr -43 Edition container not found editionMgrInitErr -450 Manager not initialized SEE ALSO
For an example of the use ofGetLastEditionContainerUsed, see Listing 2-6 beginning on page 2-40. For a description of the edition container record, see page 2-71. TheNewSubscriberDialogfunction is described next.