Important: The information in this document is obsolete and should not be used for new development.
OSASetCurrentDialect
You can use theOSASetCurrentDialect
function to set the current dialect for a scripting component.
FUNCTION OSASetCurrentDialect (scriptingComponent: ComponentInstance; dialectCode: Integer): OSAError;
scriptingComponent
- A component instance created by a prior call to the Component Manager function
OpenDefaultComponent
orOpenComponent
(see page 10-4).dialectCode
- The code for the dialect to be set.
RESULT CODES
noErr 0 No error errOSASystemError -1750 General scripting system error errOSANoSuchDialect -1757 Invalid dialect code badComponentInstance $80008001 Invalid component instance