Important: The information in this document is obsolete and should not be used for new development.
SRSetIndexedItem
You can use theSRSetIndexedItem
function 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
TheSRSetIndexedItem
function replaces the subitem having the index specified by theindex
parameter in the container object specified by thecontainer
parameter with the speech object specified by theitem
parameter. 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.