Solved

VB.net One-Dimensional Array

Posted on 2008-06-23
8
817 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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

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

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 …
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

706 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

19 Experts available now in Live!

Get 1:1 Help Now