Chapter 7
RAPID!
Functions
4460 GSM System Option and 4468 EDGE System Option
Version 12.20
307
SPACE$
I/O functions
The 4400’s RAPID! environment provides a large number of I/O functions:
Description
Returns the last
chars
characters of
aString$
, or the
whole string if
chars
is greater than the amount of
characters contained in
aString$
.
Should
chars
have decimal places, then those will be
truncated (this means that there will be no rounding).
Examples
a$="Good morning"
c$=RIGHT$(a$,7)
Will assign the string "morning" to
c$
.
Syntax
SPACE$(chars)
Parameters
chars
is a numeric expression, interpreted as positive
integer.
Description
Returns a string containing a total amount of
chars
blanks.
Examples
d$ = "Long"+SPACE$(1)+"distance"
will assign the string "Long distance" to
d$
.
Function
Short description
CHDIR
Changes the current directory.
CLOCK
Returns the time since the system was last started.
CURDIR$
Returns the currently selected directory.
DATE$
Returns a string, containing the system date.
DIR$
Function to read out the entries in a directory.
EOF
Checks whether the end of a file was reached.
EVENTWAIT,
EVENTSTATUS
Waits for an event and returns the event code.
FREEFILE
Returns the subsequent free file handle.
INKEY
Checks whether a softkey was pushed and returns
its code.
INKEYWAIT
Halts the program until a softkey is pushed.
KILL
Deletes a file.
MKDIR
Creates a new directory.
NAME
Renames an existing file.
RMDIR
Removes a directory.