Important: The information in this document is obsolete and should not be used for new development.
GetLabel
You can use theGetLabelfunction to get the color and string used for a given label in the Label menu of the Finder and in the Labels control panel.
FUNCTION GetLabel (labelNumber: Integer; VAR labelColor: RGBColor; VAR labelString: Str255): OSErr;
labelNumber- An integer from 1 to 7 indicating which label's information is requested.
labelColor- GetLabel returns, in this parameter, the color of the specified label.
labelStringGetLabelreturns, in this parameter, the string associated with the specified label.DESCRIPTION
TheGetLabelfunction returns the color and string used for a specified label in the Label menu of the Finder and in the Labels control panel.RESULT CODES
noErr 0 No error paramErr -50 The labelNumberparameter is greater than 7SEE ALSO
For information on theRGBColorrecord, see Inside Macintosh: Imaging with QuickDraw.