This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Hi Everyone,
            I am having a problem. I have a field that has a calculated
sub total on my webpage. The first time the page is displayed, the
amount in the field is correct. But any other time, it is incorrect. The
problem is that it is not initializing the subtotal field when it runs
the second time. Here is the code..

D Subtotal        S              7P 2 Inz(0)
D ExtPrice        S              7P 2 Inz(0)

  *Calculate the item extended selling price
 C                   Eval      ExtPrice = (BASITEMQTY * Price)
  *Calulate the subtotal
 C                   Add       ExtPrice      Subtotal

BOTH the ExtPrice and Subtotal fields are not getting initialized when
the program runs again. I thought by putting the Inz(0) on the two of
them would work or do I have to put something like Eval      ExtPrice =
0 before each statement. And remember, I am using return. Thanks for all
of the help!!!!!

Justin Houchin
Programmer and Web Developer
ReliaTek, Inc
justin@reliatek.com





--




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.