DDEEnabled( ) Function

Enables or disables dynamic data exchange (DDE) processing or returns the status of DDE processing.

DDEEnabled([lExpression1 | nChannelNumber [, lExpression2]])

Return Values

Logical

Parameters

  • lExpression1
    Specify true (.T.) or false (.F.) to globally enable or disable DDE processing. DDEEnabled( ) returns true (.T.) if DDE processing is successfully enabled or disabled; otherwise false (.F.) is returned.
  • nChannelNumber
    Specifies the channel number for the channel whose DDE processing status DDEEnabled( ) returns. DDEEnabled( ) returns true (.T.) if DDE processing is enabled for the specified channel and returns false (.F.) if DDE processing is disabled.
  • lExpression2
    To enable DDE processing for a specific channel, include the channel number (nChannelNumber) and specify true (.T.) for lExpression2. To disable DDE processing for a specific channel, include the channel number (nChannelNumber) and specify false (.F.) for lExpression2.

Remarks

Using DDEEnabled( ), you can globally enable or disable processing. You can also enable or disable DDE processing for specific channels.

DDEEnabled( ) can be used to protect critical code or disable links for short periods. When DDE processing is disabled, client requests are queued until DDE processing is enabled.

If DDEEnabled( ) is issued without any of its optional arguments, the global DDE processing status is returned. DDEEnabled( ) returns true (.T.) if DDE processing has been globally enabled and false (.F.) if DDE processing has been globally disabled.

See Also

DDEAbortTrans( ) | DDEAdvise( ) | DDEExecute( ) | DDEInitiate( ) | DDELastError( ) | DDEPoke( ) | DDERequest( ) | DDESetOption( ) | DDESetService( ) | DDESetTopic( ) | DDETerminate( )