Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Interapplication Communication /
Chapter 10 - Scripting Components / Scripting Components Reference
Optional Scripting Component Routines / Manipulating Dialects


OSAGetCurrentDialect

You can use the OSAGetCurrentDialect function to get the dialect code for the dialect currently being used by a scripting component.

FUNCTION OSAGetCurrentDialect
                  (scriptingComponent: ComponentInstance;
                   VAR resultingDialectCode: Integer): OSAError;
scriptingComponent
A component instance created by a prior call to the Component Manager function OpenDefaultComponent or OpenComponent (see page 10-4).
resultingDialectCode
The OSAGetCurrentDialect function returns, in this parameter, the code for the current dialect of the specified scripting component.
RESULT CODES
noErr0No error
errOSASystemError-1750General scripting system error
errOSANoSuchDialect-1757Invalid dialect code
badComponentInstance$80008001Invalid component instance

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996