home *** CD-ROM | disk | FTP | other *** search
- create apt proc clcst_1( entry quantity int,
- entry discount float,
- entry price money,
- entry total money,
- variable status int ) as
- begin
- if quantity is NULL
- begin
- print "Please enter the quantity."
- status = 0
- return
- end
-
- if price is NULL
- begin
- print "The price is not in the database."
- status = 0
- return
- end
-
- if discount is NULL
- begin
- discount = 0
- end
-
- total = (1.00 - (discount/100.00) ) * (quantity * price)
- status = 1
-
- return
- end
-