Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

arrays

Posted on 2005-04-24
1
Medium Priority
?
205 Views
Last Modified: 2012-05-05
0
Comment
Question by:dprasad
1 Comment
 
LVL 9

Accepted Solution

by:
checoo earned 2000 total points
ID: 13856079
The problem is in the below line

ddl.Items.Add(new ListItem(books(i,0),books(i,1)))  

you have declared the array books(3) which means that its a one dimensional array but you are trying to access it like a two dimensional array by saying books(i,0) you should change it to books(i)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Screencast - Getting to Know the Pipeline
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

578 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