Step.EditCode

Syntax

Step.EditCode

Return Value

Boolean

Indicates if the step was modified.

Purpose

Launches an external application to edit the code module associated with this step.

Remarks

A different application is launched for each adapter. For example, the EditCode method launches LabVIEW for steps created with the LabVIEW Adapter.

For adapters that use Microsoft Visual Studio, calling this method can result in prompts to the user if any of the following conditions exist:

  • Multiple versions of Visual Studio exist on the computer and you select the Always Prompt for Version option from the Version of Visual Studio to Use for Create and Edit Code ring control in the Adapter Configuration dialog box.
  • Multiple versions of Visual Studio exist on the computer and you select the Use the Version that Matches the Project File option from the Version of Visual Studio to Use for Create and Edit Code ring control in the Adapter Configuration dialog box, and TestStand cannot match the version of the file.
  • The specified solution does not contain the specified project.
  • The specified project does not contain the specified source file.

See Also

Adapter Configuration dialog box

Step.CanEditCode

Step.CreateCode