New Commands
Commands:
CLS - Clear Screen
ALERT - Play Alert Sound
syntax:
ALERT I
I = sound index 0-5
Example:
ALERT 3
Direct Mode added Commands (can't be called inside program):
HELP - Get In App Online Help for C64 BASIC
ACTION - See list of Actions
ASCII ON - Enable ASCII program files, LOAD/SAVE program files with text format (default is ON)
ASCII OFF - Disable ASCII program files, LOAD/SAVE program files with binary format
?ASCII - Query ASCII files flag: ON/OFF
?VERSION - Get Hand BASIC version
EXITAPP - Exit App
FILES - List files
syntax:
FILES ["filter"]
filter: List all files having the filter text (case insensitive)
if filter is omitted all available files will be listed
Examples:
FILES
FILES "s"
KILL - Delete a file
syntax:
KILL "FileName"
Example:
KILL "NAME.BAS"
EXPORT - Export file/screen content to other App or print (iOS4.2 or later) it
syntax:
EXPORT ["FileName"]
FileName : file to export (optional)
if you omit file name screen content will be selected
Example:
EXPORT "NAME.BAS"
EMAIL - email file/screen content (v1.5.6)
syntax:
EMAIL ["FileName"]
FileName : file to email (optional)
if you omit file name screen content will be selected
Example:
EMAIL "NAME.BAS"
RENUM - renumber your program
you can select destination file and start line number and line increment
syntax:
RENUM "FILE1" [TO "FILE2"] [FROM N [STEP M]]
FILE1 : source file
FILE2 : destination file (optional, default source file name)
N : start line number (optional, default 10)
M : increment (optional, default 10)
Examples:
RENUM "QUIZ.BAS" TO "QUIZ"
RENUM "QUIZ"
RENUM "QUIZ" TO "Q" FROM 1000
RENUM "QUIZ" TO "Q" FROM 1000 STEP 5
RENUM "Q" FROM 5 STEP 5
HINT: don't forget to load after you do RENUM
MERGE - merge/concatenate two files/programs
syntax:
MERGE "FILE1" AND "FILE2" INTO "FILE3"
repeated lines will be overwritten with the second file lines at LOADing
Example:
MERGE "FIRST.BAS" AND "SECOND.BAS" INTO "THIRD.BAS"
RENAME - rename a file
syntax:
RENAME "FILE1" TO "FILE2"
FILE1 : original file name
FILE2 : new file name
example:
RENAME "TEST.BAS" TO "NAME.BAS"
COPY - Copy/duplicate file
syntax:
COPY "FILE1" TO "FILE2"
FILE1 : file name to copy
FILE2 : new copied file name
Example:
COPY "TEST.BAS" TO "NAME.BAS"
EDIT - open editor to edit program or any other text file
syntax:
EDIT "FileName"
If you edit a program make sure to number each line of code and the line length does not exceed 80 characters. You can use copy & paste inside editor
Example:
EDIT "NAME.BAS"
FONTS - List available fonts
syntax:
FONTS ["filter"]
filter: List all font names having the filter text (case insensitive)
if filter is omitted all available font names will be listed
Examples:
FONTS
FONTS "a"
Directory Support
DIR - List files and directories (bracketed) in current working directory
DIR "filter" - List files and directories having the filter
PWD - Print current working directory
MKDIR "path" - Make new directory. Directory can be absolute or relative
CHDIR "path" - Change current working directory. Directory can be absolute or relative
RMDIR "path" - Remove/Delete directory. Directory can be absolute or relative.
Notes:
- You also can use file path in COPY file command.
- While you can make nested directories, it is recommended to make one level to keep things simple.
- FILES command will list files in current working directory only
- Root directory of BASIC programs is "/" (Documents Directory of the App)
Stylize Editor:
set your editor's font name and font size, and set text and background colors
to set font
SET FONT "fontname", size
fontname = font name ( to see available fonts use FONTS "filter" )
size = point size of font (recommended values 16-24)
Example:
SET FONT "Helvetica-Bold", 22
set text color
SET FCLR r, g, b
set background color
SET BCLR r, g, b
r = red component of color
g = green component of color
b = blue component of color
values are 0-255
Examples:
SET BCLR 30, 30, 20
SET FCLR 255, 255, 255
save settings
SET STORE
Example:
SET STORE
restore original settings
SET RESTORE
Example:
SET RESTORE