CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Calculate Discount

Print topic Send  topic

Author Message
Bob Dudley
Posted: 09/23/2003, 6:15 AM

Could someone assist me please?
I am building a basic page with a grid showing items searched including:
Part number, description, size, cost, list.
I would like to add a field that is calculated on the fly taking the cost and adding 30% to get the discount retail price.
I'm using CodeCharge Studio V2.2, MS Access, IIS 5, output to ASP.

arrowgance
Posted: 09/30/2003, 10:07 PM

The solution is add a label name it lbl_Discount (you know how to add labels right? Like link, textbox, hidden...etc.)

As I Visualize your page

Part number------description-----size--------cost-----discount---------list
{PN}----------------{desc}-------{size}------{cost}---{lbl_Discount}---{list}

--------------------{Page}-----------------------

And then click lbl_Discount go to it's before show event

add the code or I do not know really the formula you want???

yourformname.lbl_Discount.Value = yourformname.cost.Value + .30

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.