DDETerminate( ) Function

See Also

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

Syntax

DDETerminate(nChannelNumber | cServiceName)

Returns

Logical

Arguments

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.