The home of BBC BASIC


BBC BASIC for Android and iOS

Guide to using the Touch IDE

The BBC BASIC 'touch IDE' has two main interfaces: the file selector and the program editor; when you run BBC BASIC you are initially presented with the file selector. Both should respond 'conventionally' to the common touch gestures: tap, long press (touch-and-hold), drag and pinch; details are given below. Pressing the [back] button will usually return you to what you were doing previously (in iOS the [back] button is overlaid in the top-left corner).

File Selector

The file selector displays a list of directories and files. The various touch gestures behave as follows:

The list always contains the following items: .. to signify the parent directory ('up'), @lib$ to signify the library directory and @usr$ to signify the user's private directory. To return to the initial screen you can tap on @lib$ then .. then examples.

In Android you can navigate to other useful places (for example Download) by starting at @usr$ and then tapping .. ('up') repeatedly until you get to a list containing the folder you want. In iOS the @usr$ directory is shared and can be seen from a connected PC or Mac using iTunes.

The contents of the Context Menu depend on where you long-pressed. If you pressed on a file, the menu will contain the following items:

If you pressed in the empty space below the list of files, the Context Menu will contain the following items:

Program Editor

The program editor displays a program for viewing or editing, with syntax colouring and auto-indentation. To exit the editor press the [back] button (if the On Screen Keyboard is displayed press the button twice). The various touch gestures behave as follows: If entering program code into an empty editor, or at the very end of a program, remember to press Enter (Return) after each line of code typed.

Creating a new program

To create a new program from scratch perform the following steps:
  1. Navigate to a writable directory; @usr$ is a good choice.

  2. Long-press below the list of files; select New File from the menu displayed.

  3. Enter the name of the new program and tap OK.

  4. Long-press on the name of the program; select Edit from the menu displayed.

  5. Type (or paste) the program. When complete press [back] to return to the file list.
If you want your program to return to the Touch IDE automatically on pressing [back], as the supplied examples do, include an ON ERROR statement at the beginning as follows:
ON ERROR CHAIN @lib$+"../examples/tools/touchide"
If you prefer you can test the error number so that other errors are reported; see any of the example programs for how to achieve that.

Home - Products - Contact us

Best viewed with Any Browser Valid HTML 4.0!
© Richard Russell 2018