Letting Visual LISP Check Your Code

VLISP has a powerful feature for checking your code for syntactical errors. Use this tool before trying to run the program. You can catch common typing errors, such as missing parentheses or missing quotation marks, and other syntactical problems.

To check the syntax of your code

  1. Make sure the text editor window containing gpmain.lsp is the active window. (Click in the title bar of the window to activate it.)
  2. From the VLISP menu, choose Tools Check Text in Editor.

    The Build Output window is displayed with the results of the syntax check. If VLISP did not detect any errors, the window contains text similar to the following:

    ; Check done.

If you have problems and need help, refer to the “Developing Programs with Visual LISP” section of the AutoLISP Developer's Guide. See if you can determine where the problem is located. If you are spending too much time locating the problem, use the sample gpmain.lsp file provided in the lesson1 directory to continue with the tutorial.

To use the supplied gpmain.lsp program (if necessary)

  1. Close the text editor window containing the gpmain.lsp code you entered.
  2. Choose File Open File from the VLISP menu, and open the gpmain.lsp file in the \Tutorial\VisualLISP\lesson1 directory.
  3. Choose File Save As and save the file in your \Tutorial\ VisualLISP\MyPath directory as gpmain.lsp, replacing the copy you created.