Solved

VB.net One-Dimensional Array

Posted on 2008-06-23
8
824 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

696 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