home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Du Jour
/
SoftwareDuJour.iso
/
BUSINESS
/
DBASE
/
DBAPG.ARC
/
AMT2CALL.PRG
< prev
next >
Wrap
Text File
|
1984-08-08
|
768b
|
32 lines
* For AMT2WORD calling program:
*
* Establish a working environment...
ERASE
SET TALK OFF
*
* Initialize a memory variable for the prompt...
STORE 0.00 TO amt:full
*
* Prompt for the entry of an amount...
@ 10,26 SAY "Enter Dollar Amount " GET amt:full
READ
*
* Call the subroutine to do the conversion...
DO Nmbrword
*
* Branch for error or not...
IF is:error
@ 12,0 SAY "***ERROR*** Number must be between 0.00 and 999999.99 ***"
ELSE
*
* Display, or print, or whatever you want to do with the result...
@ 12,0 SAY amt:word
ENDIF
*
* Restore the environment and return to the dot prompt or another program...
RELEASE amt:full,amt:word,is:error
SET TALK ON
RETURN
*EOF