Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Less verbose
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Environment versions
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01317089
Message ID:
01317101
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
>Is there a less verbose syntax for this?
>
>
>        Dim customerDataColumns(11) As String
>
>        customerDataColumns(0) = "idnum"
>        customerDataColumns(1) = "res1_fn"
>        customerDataColumns(2) = "res1_int"
>        customerDataColumns(3) = "res1_ln"
>        customerDataColumns(4) = "res1_suf"
>        customerDataColumns(5) = "addr1"
>        customerDataColumns(6) = "addr2"
>        customerDataColumns(7) = "City"
>        customerDataColumns(8) = "State"
>        customerDataColumns(9) = "zip"
>        customerDataColumns(10) = "zip4"
>        customerDataColumns(11) = "county"
>
>
>something like:
>
>Dim customerDataColumns(11) As String = "idnum", "res1_fn", "res1_int", ...

Yes, just put all info in the {}.

Dim myArray(11) as String = {myFirst, mySecond}
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform