Important: The information in this document is obsolete and should not be used for new development.
CreateLogicalDescriptor
You can use theCreateLogicalDescriptorfunction to create a logical descriptor record.
FUNCTION CreateLogicalDescriptor (VAR theLogicalTerms: AEDescList; theLogicOperator: DescType; disposeInputs: Boolean; VAR theDescriptor: AEDesc): OSErr;
theLogicalTerms- A list containing comparison descriptor records, logical descriptor records, or both. If the value of the parameter
theLogicOperatoriskAEANDorkAEOR, the list can contain any number of descriptors. If the value of the parametertheLogicOperatoriskAENOT, logically this list should contain a single descriptor record. However, the function will not return an error if the list contains more than one descriptor record for a logical operator ofkAENOT.
theLogicOperator- A logical operator represented by one of the following constants:
CONST kAEAND = 'AND '; kAEOR = 'OR '; kAENOT = 'NOT ';
disposeInputs- A Boolean value indicating whether the function (
TRUE) or your application (FALSE) should dispose of the descriptor records in the other parameters.
theDescriptor- The logical descriptor record created by
CreateLogicalDescriptor.DESCRIPTION
TheCreateLogicalDescriptorfunction creates a logical descriptor record, which specifies a logical operator and one or more logical terms for the Apple Event Manager to evaluate.RESULT CODES
noErr 0 No error occurred paramErr -50 Error in parameter list memFullErr -108 Not enough room in heap zone errAECoercionFail -1700 Data could not be coerced to requested Apple event data type errAEWrongDataType -1703 Wrong Apple event data type errAENotAEDesc -1704 Not a valid descriptor record errAEBadListItem -1705 Operation involving a list item failed SEE ALSO
For an example of how to use theCreateLogicalDescriptorfunction to create a logical descriptor record, see "Specifying a Test," which begins on page 6-75.
 
  
  
 