DDETerminate

Closes a DDE channel.

Syntax:

DDETerminate ( channel )

Parameters:

(i) channel: same integer that was returned by DDEInitiate.

Returns:

(i) always 1.

 

This function closes a communications channel that was opened with DDEInitiate.

 

Example:
url = ''
If AppExist('iexplore')
   browser = 'iexplore'
   channel = DDEInitiate(browser, 'WWW_GetWindowInfo') ;Initialize DDE
   If channel != 0 ;If DDE OK Execute DDE Command
      url = DDERequest( channel,-1)
      DDETerminate(channel)
   EndIf
Else
   Pause('','No active IE browser')
   Exit
EndIf
Message('Active URL in ':browser, url)
Exit
See Also:

DDEExecute, DDEInitiate, DDEPoke, DDERequest, DDETimeout