This document is archived and information here might be outdated.  Recommended version.


IDDECommandHandler.Execute Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Framework > ESRI.ArcGIS.Framework > Interfaces > ID > IDDECommandHandler Interface > IDDECommandHandler.Execute Method
ArcGIS Developer Help

IDDECommandHandler.Execute Method

Executes the DDE command.

[Visual Basic .NET]
Public Sub Execute ( _
    ByVal Command As String _
)
[C#]
public void Execute (
    string Command
);

Product Availability

Available with ArcGIS Desktop.

Description

Execute may be used to respond to incoming DDE messages and carry out an appropriate task. For a class implementing IDDECommandHandler, ArcMap will only call Execute if the previous call to CanExecute returned TRUE.

Remarks

Depending upon the DDE Client involved the incoming Command string may need to be converted from ANSI to Unicode to be useful within the VB environment. Code such as the following can be used to do the conversion where StrCommUni is a string variable used to hold the unicode version of the Command string:

StrCommUni = StrConv(Command, vbUnicode))

See Also

IDDECommandHandler Interface