home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
viscobv6.zip
/
vac22os2
/
ibmcobol
/
samples
/
toolkit
/
rexx
/
api
/
rexxcalc
/
memrecal.cal
< prev
next >
Wrap
Text File
|
1996-11-19
|
736b
|
14 lines
/* Rexx Calculator Memory Recall Key */
parse arg memory /* get the count of memories */
numeric digits CalcPrecision() /* set current precision */
numeric form value CalcForm() /* set current form */
if \datatype(memory, 'Whole') /* must be whole number */
then return 'Error' /* return error indicator */
if memory < 1 | memory >50 /* valid for counter */
then return 'Error' /* return error indicator */
'GET' trunc(memory) 'REGISTER' /* get current value */
'DISPLAY' register /* make current display */