Partilhar via


DDETerminate( ) Function

Closes a dynamic data exchange (DDE) channel established with DDEInitiate( ).

DDETerminate(nChannelNumber | cServiceName)

Return Values

Logical

Parameters

  • nChannelNumber
    Specifies the channel number to close.
  • cServiceName
    Specifies the service name to close.

Remarks

If the channel is successfully closed, DDETerminate( ) returns true (.T.). If the channel cannot be closed, DDETerminate( ) returns false (.F.).

Be sure to close channels as soon as they are no longer needed to conserve system resources.

All channels are automatically closed if you exit Visual FoxPro by choosing Exit from the File menu or by issuing QUIT in the Command window or from within a program.

See Also

DDEAbortTrans( ) | DDEAdvise( ) | DDEExecute( ) | DDEInitiate( ) | DDELastError( ) | DDEPoke( ) | DDERequest( ) | DDESetOption( )