• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 12. Visio VBA Automation Basics > Interpreting the Command String

Interpreting the Command String

When an add-in (written in C, C++, VB, or other external Automation controller) is executed, a command string is sent to identify Visio as the environment that launched the application. The command string contains values that you can use to retrieve objects. This is in addition to any arguments you may have passed to your application. To access this return, use the Visual Basic function Command$() and then use Mid$() or StrComp() to parse the string.

Here is an example of a return string generated on a launch:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint