Solved

VB.net One-Dimensional Array

Posted on 2008-06-23
8
818 Views
Last Modified: 2012-08-14
Good Day
Experts:

Here is what I am using...I think the proper reference is to call it a One Dimensional array.
Dim sSportString() As String = {"Baseball.sql, Football.sql, Basketball.sql, Hockey.sql,"}

How can I use this same reference but add another line to it so all off it stays in the viewable screen?
Maybe add HorseRacing.sql and Soccer.sql to the list.

Thanks,
jimbo99999
0
Comment
Question by:Jimbo99999
  • 2
  • 2
  • 2
  • +1
8 Comments
 
LVL 96

Assisted Solution

by:Bob Learned
Bob Learned earned 166 total points
ID: 21849038
Like this?

Dim sSportString() As String = { _
   "Baseball.sql, _
    Football.sql, _
    Basketball.sql, _
    Hockey.sql,"}
0
 

Author Comment

by:Jimbo99999
ID: 21849122
Really...so I could do it like this then? If so, that would be great.

Dim sSportString() As String = { "Baseball.sql, Football.sql, _
                                                    Basketball.sql, Hockey.sql,"}

jimbo99999

0
 
LVL 18

Assisted Solution

by:jcoehoorn
jcoehoorn earned 166 total points
ID: 21849192
You posted this:
 {"Baseball.sql, Football.sql, Basketball.sql, Hockey.sql,"}
Did you mean this:?
 {"Baseball.sql", "Football.sql", "Basketball.sql", "Hockey.sql"}
0
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.

 
LVL 96

Expert Comment

by:Bob Learned
ID: 21849288
The underscore is a line continuation character, so that you can break long lines to keep them visible on the screen.
0
 

Author Comment

by:Jimbo99999
ID: 21850028
I meant...

Really...so I could do it like this then? If so, that would be great.

Dim sSportString() As String = { "Baseball.sql, Football.sql, _
                                                    Basketball.sql, Hockey.sql"}

jimbo99999
0
 
LVL 18

Expert Comment

by:jcoehoorn
ID: 21850054
That won't work, but this will:

Dim sSportString() As String = { "Baseball.sql, Football.sql," &_

                                                   " Basketball.sql, Hockey.sql"}

Open in new window

0
 
LVL 44

Accepted Solution

by:
Arthur_Wood earned 168 total points
ID: 21852080
Actually, I think this is what you want:
Dim sSportString() As String = { "Baseball.sql", "Football.sql," _

                                                   "Basketball.sql", "Hockey.sql"}

Open in new window

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

Suggested Solutions

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

867 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

16 Experts available now in Live!

Get 1:1 Help Now