HP 48gII Advanced User's Reference Manual page 66

Graphing calculator
Hide thumbs Also See for 48gII:
Table of Contents

Advertisement

{"command-line" cursor-position operating-options }
Specifies the content of the command line when the program pauses. Embedded
"Command-
newline characters produce multiple lines in the display. (If not included, the
line"
command line is blank.)
Specifies the position of the cursor in the command line and its type. (If not included,
Cursor-
an insert cursor is at the end of the command line.)
position
A real number n specifies the nth character in the first row (line) of the command
!
line. Zero specifies the end of the command-line string. A positive number specifies
the insert cursor — a negative number specifies the replace cursor.
A list {row character} specifies the row and character position. Row 1 is the first row
!
(line) of the command line. Characters count from
the left end of each row — character 0 specifies the end of the row. A positive row
number specifies the insert cursor — a negative row number specifies the replace
cursor.
Specify the input setup and processing using zero or more of these unquoted names:
operating-
ALG activates Algebraic/Program-entry mode (for algebraic syntax). (If not included,
options
!
Program-entry mode is active.)
Π(~...a) specifies alpha lock. (If not included, alpha is inactive.)
!
V verifies whether the result string (without the ""delimiters) is a valid object or
!
sequence of objects. If the result string isn't valid, INPUT displays the
Invalid Syntax message and prompts again for data. (if not included, syntax
isn't checked.)
To design the command-line string for INPUT:
For simple input, use a string that produces a valid object:
!
Use an empty string
"
Use a :label : tag.
"
Use a @ text @ comment.
"
For special input, use a string that produces a recognizable pattern.
!
After the user enters input in the command line and presses ` to resume execution, the contents of the
command line are returned to level 1 as the result string. The result string normally contains the original
command-line string, too. If you design the command-line string carefully, you can ease the process of
extracting the input data.
To process the result string from INPUT:
For simple input, use OBJ" to convert the string into its corresponding objects.
!
For sensitive input, use the V option for INPUT to check for valid objects, then use OBJ" to convert the
!
string into those objects.
For special input, process the input as a string object, possibly extracting data as substrings.
!
Example:
The program VSPH on page 1-39 uses an empty command-line string.
Example:
The program SSEC on page 1-42 uses a command-line string whose characters form a pattern. The
program extracts substrings from the result string.
1-40 RPL Programming

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

49g+

Table of Contents