?
Solved

What does this code mean?

Posted on 2004-04-25
2
Medium Priority
?
158 Views
Last Modified: 2010-05-02
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
Comment
Question by:karen4444
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 53

Accepted Solution

by:
Ryan Chong earned 400 total points
ID: 10913288
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
 

Author Comment

by:karen4444
ID: 10913439
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question