?
Solved

how can i create a two dimensional arraylist.  Example please (VB.Net)

Posted on 2004-11-29
2
Medium Priority
?
10,274 Views
Last Modified: 2008-02-20
how can i create a two dimensional arraylist.  Example please (VB.Net)
0
Comment
Question by:musclejack
  • 2
2 Comments
 
LVL 5

Accepted Solution

by:
bullrout earned 1500 total points
ID: 12703264
HI,

is this what your after?

dim mycountries=New ArrayList
  mycountries.Add("Norway")
  mycountries.Add("Sweden")
  mycountries.Add("France")
  mycountries.Add("Italy")

or you can use something like this

  Dim newChars As String
        Dim i As Integer
        Dim badChars() As String = {"select", "drop", ";", "--", "insert", "delete", "xp_", "execute", "'"}
        newChars = strWords
        For i = badChars.GetLowerBound(0) To badChars.GetUpperBound(0)
            newChars = Replace(newChars, badChars(i), "")
        Next
        killChars = newChars

Hope this helps ;-)
0
 
LVL 5

Expert Comment

by:bullrout
ID: 12703308
Hi,

you can also use something like

Dim values As String = "1,34,54,123,34"    
Dim list As New ArrayList    
list.AddRange(values.Split(","c))
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

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

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses
Course of the Month16 days, 10 hours left to enroll

862 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