Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 167
  • Last Modified:

What does this code mean?

Dim pizzaprice(0 To 3, 0 To 2) As Currency - what does this bit mean?

I'm doing a vb course (very new to it) - I don't understand what this means - why the 0 to 3 and then 0 to 2.  I have 3 different  pizzas with 3 different sizes

    Any ideas or do I need to give a bit more info?

Thanks for any help

Karen
0
karen4444
Asked:
karen4444
1 Solution
 
Ryan ChongCommented:
The line:

Dim pizzaprice(0 To 3, 0 To 2) As Currency

creates a 2 dimension array of Currency types to handle the values. Imagine where the pizzaprice is listed on a 2 dimension tables, where the x-axis is 0 to 3, and y-axis is 0 to 2 and that shows and allocate the prices of pizza.

Now more understand on it?
0
 
karen4444Author Commented:
Thanks for your help ryancys - I'm new to this site (not sure if this is the correct route of replying)? to you - apologies if not!

PS - the penny has dropped at last! - I'll get the hang of this VB stuff one day (I hope)
Karen
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now