Up (Move To A Parent Directory) - HP -28S Manual

Advanced scientific calculator
Hide thumbs Also See for HP-28S:
Table of Contents

Advertisement

UP (Move to a Parent Directory)
Create a menu that contains the names of the parent directory, its
parent directory, and so on, back to the HOME directory.
Arguments
Results
1 :
1 :
Techniques:
• List of parent directories. UP uses PATH to return the names of the
current directory and all parent directories.
• Subset of a list. UP uses SUB to remove the name of the current
directory from the PATH list.
• Custom menu. UP uses MENU to create a custom menu of parent
directories from the modified PATH list.
Program
PATH
1
OVEI': ::; I ZE 1 -
:3UB
MEtW
I
ENTER
I
c:::J
UP
I
STO
I
Comments
Begin the program.
Put the path list on the stack.
Put 1 on the stack.
Put
size -
1 on the stack.
Create a subset of the PATH list
that includes all names but the
last name (the current directory).
Create a menu of parent
directories.
End the program.
Put the program on the stack.
Store the program as UP.
276
28: Programming Examples

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents