The home of BBC BASIC

R. T. RUSSELL

BBC BASIC for Android, iOS and in-Browser



Guide to using the Touch IDE

The BBC BASIC 'touch IDE' (used for the Android, iOS and in-browser editions of BBC BASIC) 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; 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).

If you have a keyboard available (e.g. a BlueTooth keyboard in the case of Android and iOS, or the main keyboard in the case of the in-browser edition running on a desktop platform) you can also control the 'touch IDE' that way. The Escape key has the same effect as the back button.

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 personal 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, or from the Files app.

The contents of the Context Menu depend on where you long-pressed (or used the Tab key). 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) or press the Escape key. 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 (or press the Tab key) below the list of files; select New File from the menu displayed.

  3. Enter the name of the new program (include the .bbc extension) and tap OK or press Enter.

  4. Long-press (or press the Tab key) on the name of the program; select Edit from the menu displayed.

  5. Type (or paste) the program. When complete press [back] (or press the Escape key) 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.

Recovering from a 'crash'

It is inevitable that from time to time BBC BASIC will crash (for example abort with an untrapped error), especially if you are testing and debugging your own programs. If this happens it will not damage your device or other apps, but it will be necessary to close BBC BASIC and open it again. To do that proceed as follows:


Home - Products - Contact us

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