home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
TOOLKIT
/
CREXX
/
REXXCALC
/
MEMRECAL.CAL
< prev
next >
Wrap
Text File
|
1994-11-17
|
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 */