Solved

VB.net One-Dimensional Array

Posted on 2008-06-23
8
821 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
Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

 
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 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