Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

COM_delete

Removes COM control or server.

Syntax

  • COM_delete(h)
  • delete(h)

Input argument

  • 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.

Example

pTextToSpeech = actxserver('Sapi.SpVoice')
delete(pTextToSpeech)
clear pTextToSpeech

See also

actxserver.

History

VersionDescription
1.0.0initial version

Author

Allan CORNET