Link to home
Start Free TrialLog in
Avatar of Jimbo99999
Jimbo99999Flag for United States of America

asked on

VB.net One-Dimensional Array

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
SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jimbo99999

ASKER

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

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The underscore is a line continuation character, so that you can break long lines to keep them visible on the screen.
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
That won't work, but this will:

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

Open in new window

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial