Original Author Paul Laughton, 2011
Page 86
De Re BASIC!
For example, assume:
You are using the default <pref base drive>
You downloaded a file called "my_program.bas" to the standard Android Download directory.
You used the BASIC! Editor to load and run the downloaded program.
Then the returned values would be as follows:
Key
Value
Key
Value
BasPath
../../Download/my_program.bas
BasName
my_program.bas
SysPath
../../../../../data/data/com.rfo.basic
UserApk
0.0
SysPath: BASIC! normally keeps programs and data in its base directory (see Working with Files, later in
this manual). The base directory is in public storage space. BASIC! programs also have acces to a private
storage area. Your program can create a subdirectory within the SysPath directory and store private files
there. Note that if you uninstall BASIC!, any files in private storage will be deleted.
SysPath is of particular interest to you if you build a BASIC! program as an application in a standalone
apk, as described in Appendix D. See Modifications to the AndroidManifest.xml File
Permissions.
Switch Commands
The Switch commands may be used to replace nested if-then-else operations.
SW.BEGIN a
SW.CASE 1
<statement1>
...
<statement2>
SW.BREAK
SW.CASE 2, 4
<statement3>
...
<statement4>
SW.BREAK
SW.CASE < 0
<statement5>
...
<statement6>
SW.BREAK
SW.DEFAULT
<statement7>
SW.END