Programming Help

Anybody help please!
my assignment is to set up
five txtUcost text box using a control array
five txtQuant text box using a control array
five txtDiscount text box using a control array
five txtCost text box individually named txtCost1,2,3,
two command button one for calculate Ucost*Quant-Discount and result to cost.But if Ucost >50 discount is 5% and >100 discount is 10%
command Total calculate sum all five cost text box using For and a Do loop. And add a Next command button enabling more then five items.I try to look in the book but they all cover string and not calculation.

Comments

  • : Anybody help please!
    : my assignment is to set up
    : five txtUcost text box using a control array
    : five txtQuant text box using a control array
    : five txtDiscount text box using a control array
    : five txtCost text box individually named txtCost1,2,3,
    : two command button one for calculate Ucost*Quant-Discount and result to cost.But if Ucost >50 discount is 5% and >100 discount is 10%
    : command Total calculate sum all five cost text box using For and a Do loop. And add a Next command button enabling more then five items.I try to look in the book but they all cover string and not calculation.

    The default data type for a text box is a string,what you need to do is use the val() function in your calculation e.g val(text1)*val(text2).check out MSDN for explanation of val()



Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion