Dim decCost As Decimal Dim qty As Integer Dim override As Decimal Dim purchase As Decimal 'calculate the purchase decCost = CDec(lstCost.Items(lstCost.SelectedIndex)) qty = qtyTextBox.Text override = overrideTextBox.Text If overrideTextBox.Text = " " Then purchase = decCost * qty Else purchase = override * qty End If lblTotal.Text = purchase
Thank you for any help
arobu

New Topic/Question
Reply




MultiQuote






|