Solved

What does this code mean?

Posted on 2004-04-25
2
151 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
2 Comments
 
LVL 49

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…
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…

910 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now