COM_delete
Removes COM control or server.
📝Syntax
COM_delete(h)
delete(h)
📥Input Arguments
Parameter Description
h a handle: a COM object.
📄Description

delete(h) releases all the interfaces derived from the specified COM server or control, and then deletes the server or control itself.

This is different from releasing an interface, which releases and invalidates only the particular interface.

Do not forget to clear h afterward.

💡Examples
pTextToSpeech = actxserver('Sapi.SpVoice')
delete(pTextToSpeech)
clear pTextToSpeech
🔗See Also
actxserver
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub