Need Help with my project!!!!

skentback

New member
Joined
Feb 19, 2005
Messages
1
Location
Cleveland, TN
Programming Experience
Beginner
Need Help with my project!!!! [RESOLVED]

Hello Everybody,

I have a project due and have tried to get it to work but I can't. I have a 2D table that I look up for the information. It will pick up the first two in the bot not the last two. Here is what I have.

Private priceDecimal(,) As Decimal = {{5.99D, 6.99D, 7.99D, 8.99D}, _
{6.99D, 7.99D, 8.99D, 9.99D}}
Private PizzaPriceDecimal As Decimal

Private Sub Calculate_Click.....
Dim sizeIndexInteger As Integer
Dim styleIndexInteger As Integer

sizeIndexInteger = cboPizzaSize.SelectedIndex
styleIndexInteger = cboPizzaStyle.SelectedIndex
If sizeIndexInteger <> -1 And styleIndexInteger <> -1 Then
PizzaPriceDecimal = priceDecimal(sizeIndexInteger, styleIndexInteger)
lblPizza.Text = PizzaPriceDecimal.ToString("C")

Thanks for looking and any help you could give me!!

skentback

I had the sizeIndexInteger and styleIndexInteger switched.
 

Attachments

  • VBFinalProject.zip
    86.9 KB · Views: 41
Last edited:
Top Bottom