Important: The information in this document is obsolete and should not be used for new development.
SRSetIndexedItem
You can use theSRSetIndexedItemfunction to replace a subitem in a container object with some other object.
pascal OSErr SRSetIndexedItem ( SRSpeechObject container, SRSpeechObject item, long index);
container- A speech object.
item- A speech object.
index- An integer ranging from 0 to one less than the number of subitems in the specified speech object.
DESCRIPTION
TheSRSetIndexedItemfunction replaces the subitem having the index specified by theindexparameter in the container object specified by thecontainerparameter with the speech object specified by theitemparameter. A reference to the replacement item is maintained separately by the container; as a result, you can release any reference to that item if you no longer need it. The reference to the replaced item is removed from the container; if that reference was the last remaining reference to the object, the object is released.