Debugging a Program (continued)

  1. Click Run Macro , browse to CreateCutExtrude.swp, and click Open.

    A message box is displayed informing you that the code contains an undefined variable. Because the program contains the
    Option Explicit statement, all variables in the program must be defined.  

  2. Click OK.

    The offending code is selected in the Code window. The yellow arrow in the left margin indicates that execution will resume at this line of code.

  3. Click the selected code, and insert the letter r so Pat becomes Part, which is a declared variable in the code.

Next

Return SolidWorks Help Index

Your Ad Here