Solved

What does this code mean?

Posted on 2004-04-25
2
154 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 51

Accepted Solution

by:
Ryan Chong earned 100 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

763 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