Important: The information in this document is obsolete and should not be used for new development.
Manipulating Dialects
Scripting components that provide several dialects may provide five functions that allow you to switch between dialects dynamically and get information about currently available dialects. The codes for specific dialects are provided by the scripting component.The
OSASetCurrentDialect
function sets the current dialect, and theOSAGetCurrentDialect
function gets the dialect code for the current dialect. TheOSAAvailableDialectCodeList
function returns a list of codes for a scripting component's dialects. You can pass any of these codes to theOSAGetDialectInfo
function to get information about a specific dialect.Instead of using the
OSAAvailableDialectCodeList
andOSAGetDialectInfo
functions, you can use theOSAAvailableDialects
function to get a descriptor list that contains information about all of the currently available dialects for a scripting component. However, it is usually more convenient to get information about just one dialect.A scripting component that supports the functions described in this section has the
kOSASupportsDialects
bit set in thecomponentFlags
field of its component description record.
Subtopics
- OSASetCurrentDialect
- OSAGetCurrentDialect
- OSAAvailableDialectCodeList
- OSAGetDialectInfo
- OSAAvailableDialects