Original Author Paul Laughton, 2011
Page 27
De Re BASIC!
On some devices, if you do a long touch on the screen, a dialog box will appear. You can use the
selections in the box for selecting, copying, cutting and pasting of text, among other things. Other
devices have different procedures for invoking the cut and paste functions.
Multiple Commands on a Line
More than one BASIC! source code statement may be written on one physical line. Separate commands
with a colon character ":".
For example, the following line uses three separate commands to initialize some variables:
name$="BASIC!" : ver=1.86 : array.load reviews$[], "Great!", "Wow!", "Fantastic!"
Note: two commands, Sensors.open and SQL.update, use the colon as a sub-parameter separator. If
you use multiple-command lines, be careful when using these two commands.
Line Continuation
A BASIC! source code statement may be written on more than one physical line using the line
continuation character "~". If "~" is the last thing on a line, except for optional spaces, tabs, or a '%'
comment, the line will be merged with the next line. This behavior is slightly different in the Array.load
and List.add commands; see the descriptions of those commands for details.
Note: this operation is implemented by a preprocessor that merges the source code lines with
continuation characters before the source code is executed. If you have a syntax error in the merged
line, it will show as one line in the error message, but it will still be multiple lines in the editor. Only the
first physical line will be highlighted, regardless of which line the error is in.
For example, the code line:
s$ = "The quick brown fox " + verb$ + " over " + count$ + " lazy dogs"
could be written as:
s$ = "The quick brown fox " +~
verb$ + ~ % what the fox did
" over " + ~
count$ + ~ % how many lazy dogs
" lazy dogs"
# - Format Line
If a line has the # character at the end of the line, the keywords in that line will be capitalized and the #
will be removed.
This feature may not work if you are using a virtual keyboard.
This feature will not work if the Preference option "Editor AutoIndent" is not checked.