The NewBASIC Language

To customize the behavior of your program, you write routines in a BASIC-like language. When the program is running, components experience events when the user interacts with them. You can create BASIC routines which are executed in response to these events. In this manner, you can define the effects of the user's interactions with your program's UI gadgetry.

In the Builder, you can double-click on any component to bring up the Code Editor window. The Code Editor allows you to select, edit, and create BASIC routines. The rest of this chapter covers the organization of these BASIC routines, interactions with the Code Editor window, and the syntax of the BASIC flow-control constructs and built-in routines.

Organization of BASIC Code

The Editor Window

The Language