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
OSASetCurrentDialectfunction sets the current dialect, and theOSAGetCurrentDialectfunction gets the dialect code for the current dialect. TheOSAAvailableDialectCodeListfunction returns a list of codes for a scripting component's dialects. You can pass any of these codes to theOSAGetDialectInfofunction to get information about a specific dialect.Instead of using the
OSAAvailableDialectCodeListandOSAGetDialectInfofunctions, you can use theOSAAvailableDialectsfunction 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
kOSASupportsDialectsbit set in thecomponentFlagsfield of its component description record.
Subtopics
- OSASetCurrentDialect
- OSAGetCurrentDialect
- OSAAvailableDialectCodeList
- OSAGetDialectInfo
- OSAAvailableDialects