Watson Imperative Programming Tutorial


Home
Labs
Tutorials
Known Bugs
Schedule
Archive
Members
Contact Information

Declarations

Below is a screenshot from the edit code window which shows a popup menu that is displayed when the keyword "declarations" is clicked. This allows you to perform certain actions (those at the top of the popup menu) or insert other commands (those at the bottom of the menu). Following the graphic is a detailed list of the available commands along with a description of what each does.

  • Insert After Highlighted Text - Inserts a new statement line after the current line of code.
  • Insert Before Highlighted Text - Inserts a new statement line before the current line of code.
  • Delete Highlighted Text - Delete the current statement line.

  • Undo Last Action - Undoes the last change made to the code.

  • Cut - Deletes the highlighted code and places it in the clipboard.
  • Copy - Places a copy of the highlighted code into the clipboard.
  • Replace - Replaces the highlighted code with the contents of the clipboard, as long as the formats are the same.
  • Expand - Inserts the default constructs into an area where they have been inadvertently deleted (i.e. if you accidentally delete all of the declarations of a program, simply click expand).

  • Variable-Integer - Declares a new integer variable.
  • Variable-String - Declares a new string variable.
  • Variable-Integer Array - Declares a new array of integers.
  • Variable-String Array - Declares a new array of strings.
  • Procedure - Declares a new procedure.
  • Function-Integer - Declares a new function that returns an integer.
  • Function-String - Declares a new function that returns a string.

<< Back

Back to Tutorials

Next >>



Home | Labs | Tutorials | Known Bugs | Schedule | Archive | Members | Contact Information

For problems or questions regarding this site or the labs, contact the Watson Project.
Last updated: 10/22/03.