SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

VB.Net Conversion to C#

Last post 03-27-2007 6:27 AM by mgillson. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 03-27-2007 6:27 AM

    VB.Net Conversion to C#

    Conversion worked properly on

             sql = "SELECT t.doc_sheet_nbr as code,t.doc_title as description " + _
                   "FROM   myschema.mydoc t " + _
                   "WHERE t.facility = '" + Facility + "' " + _
                   "AND   t.document_type = 'DRAW' " + _
                   "AND   t.document_sub_type = '" + DocSubType + "' " + _
                   "AND   t.document_nbr = '" + DocNumber + "' "
     

    to

                sql = "SELECT t.doc_sheet_nbr as code,t.doc_title as description " + "FROM   myschema.mydoc t " + "WHERE t.facility = '" + Facility + "' " + "AND   t.document_type = 'DRAW' " + "AND   t.document_sub_type = '" + DocSubType + "' " + "AND   t.document_nbr = '" + DocNumber + "' ";

    What would be helpful is to maintain the CR/LF.  This  maintains the readability.
     

     

Page 1 of 1 (1 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.