Solved

What does this code mean?

Posted on 2004-04-25
2
148 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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now