[next] [previous] [contents]

  Table 2-2: Examples of Editing in Line Mode



  EDIT 100 /LEFT$/RIGHT$/ Replaces the first occurrence of LEFT$ with RIGHT$ on line 100.
  EDIT Invokes the default editor and reads the current program into the
                                              editor's buffer.
  EDIT 2000 Lists line 2000 (line 2000 becomes the default EDIT line).
  EDIT 30 /LEFT$/RIGHT$/,3 Starts the search on the third text line of program line 30 and replaces
                                              the first occurrence of LEFT$ with RIGHT$.
  EDIT 300/LEFT$//2 Removes the second occurrence of the string LEFT$ from line 300. Note
                                              that you must specify delimiters around the null replacement string.
                                              Otherwise, the EDIT command replaces the first occurrence of LEFT$
                                              with 2.