Important: The information in this document is obsolete and should not be used for new development.
GetLastEditionContainerUsed
Use theGetLastEditionContainerUsed
function 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
GetLastEditionContainerUsed
function locates the last edition for which a section was created, thecontainer
parameter contains its volume reference number, directory ID, filename, and part, and returns anoErr
result code. (The last edition created is associated with the last time that your application or another application located on the same machine used theNewSection
function.)DESCRIPTION
If the last edition used is missing, theGetLastEditionContainerUsed
function returns anfnfErr
result code, but still returns the correct volume reference number and directory ID that you should use for theNewSubscriberDialog
function.Pass the information from the
GetLastEditionContainerUsed
function to theNewSubscriberDialog
function.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. TheNewSubscriberDialog
function is described next.