This document is archived and information here might be outdated. Recommended version. |
Executes the DDE command.
[Visual Basic .NET]
Public Sub Execute ( _
ByVal Command As String _
)
[C#]
public void Execute (
string Command
);
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.
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))