ArcObjects Library Reference (Framework)  

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