Solved

VB.net One-Dimensional Array

Posted on 2008-06-23
8
823 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
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

Industry Leaders: 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

Suggested Solutions

Title # Comments Views Activity
ASP.NET Calendar Control 5 31
vb.net deleting excel sheet in workbook 11 36
VB.Net Data Class 1 27
Stop Git from being my repository 1 27
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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 …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

697 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