Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Translate VB to C#
Message
De
11/12/2013 11:48:35
 
 
À
11/12/2013 10:47:38
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows 8
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01589830
Message ID:
01589887
Vues:
26
>It splits the alterScope string into separate, presumably SQL command, lines using the 4 strings in new string[] as 'delimiters' For example, given:
            string alterScopeSql = "SELECT * FROM ORDERS GO SELECT * FROM Customers GO";
>            string[] commands = alterScopeSql.Split(new string[] {"GO\r\n","GO ","GO\t","GO"}, StringSplitOptions.RemoveEmptyEntries);
then after running 'commands' would be:
>[0] "SELECT * FROM ORDERS"
>[1] "SELECT * FROM CUSTOMERS"

Thanks Viv, that makes it crystal clear.

I passed through Leominster for one night back in August and thought of you but my wife and Aunt would have killed me for leaving them and meeting you at a pub somewhere :)
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform