E. RESETTING RAMEXPAND ENTRY POINTS
is normally stored in locations 11—12. This entry point corres-
which is normally at HIMEM. If locations 11—12 are changed or
programs through a CALL 10 or the Applesoft USR function.
F. DECLARING VARIABLES
strings should be declared before use. This can be accomplished
RAMEXPAND. If this precaution is not taken, RAMEXPAND will
either not return the value expected or flag an error. (see
section IV.A.3.)
IV. ERROR HANDLING
A. DESCRIPTION
Each RAMEXPAND function has an associated error status which
is generally passed to a variable stipulated in the command
string CM$. The following characteristics describe the error
handling process under a variety of conditions.
1. If the command string CM$ is not found, there is no command
string to indicate an error status variable. In this case, there
is no indication of any error.
2. If no variable is specified for the error status, no error
status is returned and the function continues. If no other error
occurs, the function will be successful.
3. If a non—existent variable (i.e., a variable which was not
declared previously) is specified for error status, there is no
indication of any error, even if one occurs. This can be quite
confusing in the event that an error does occur, since no
indication of this error will be given via the error status
variable.
4. If an error status variable is found, but some other variable
is not found, an error is returned. No other action takes place.
5. Actions occuring when other errors take place depend upon the
situation and the error. In most (but not all) cases, no action
will have taken place, after an error condition is encountered.
34
Komentarze do niniejszej Instrukcji