Turbo Pascal (With DOSBox) provides some tool functions in programming, how to use these tools is guided below.

Cut, Copy and Paste

Turbo Pascal has a way to copy, cut and paste them in Word, but other usage mechanisms.

  • To copy a piece of text, select the original paragraph and click Edit> Copy (or press Ctrl + Ins).
  • To cut a piece of text, select the text to cut and click Edit> Cut (or press Shift + Del).
  • To create a paragraph, select the text you want to cut and click Edit> Paste (or press Shift + Ins).

Note: If you paste blank, just do the above, if you want to replace the existing text override, select the text to overwrite and go to Edit> Delete (Or press Ctrl + Del) then click Copy or Paste at that location.

In addition, Delete button in Edit also deletes existing text, to delete existing text, go to Edit> Delete (Or press Ctrl + Del)

Find and Replace

  • To Search for a piece of text or code, go to Search> Find ...

The search dialog box appears, I enter the code, the phrase to search in the Text to Find input field. In addition, you can change the results, filter the search results by adjusting options in Options, Direction. Scope and Origin (Red frame in the image). After finishing click OK to find.

You can use the history list to re-enter text that you've already entered, click the arrow icon to the right

  • To replace a piece of text or code, go to Search> Find ...

The dialog box appears, I enter the code, the phrase to search in the Text to Find input field and enter the replacement word in the New Text input field. Alternatively, you can change the results, filter the search results and replace the search by adjusting the options in Options, Direction. Scope and Origin (Red frame in the image). After finishing, click OK to find and replace. If you click Change All will search all the search terms and replace them all.

You can use the history list to re-enter text that you've already entered, click the arrow icon to the right

Go to line number

To find a line, go to Search> Go to line number ... and enter the line number in the Enter New Line Number box and click OK.

You can use the history list to re-enter text that you've already entered, click the arrow icon to the right

Find Error and go to last error

  • To find the error, go to Search> Error Search and enter the error address in the Error address box and click OK to Search. (You can use the history list to re-enter text that you've already entered, click the arrow icon to the right).
  • Go to last error is command displays the last compile-time error message at the top of the screen and positions the cursor near where the error occured. No error message is displayed if the last compilation was successful.