Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Less verbose
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
VB 9.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01317089
Message ID:
01317101
Vues:
14
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform