You must Sign In to post a response.
  • Category: .NET

    Hi to all,dis is a vb6 statement,then how to write dis one into c#.

    Vb6 statement:
    sqlquery(UBound(sqlquery)) = "alter table " & curNode4.Attributes(2).nodeValue & " add foreign key (" & scols & ") references " & curNode4.Attributes(0).nodeValue & " (" & sval & ") "
  • #586399
    hi

    May be this usefull to u

    sqlquery(Information.UBound(sqlquery)) == "alter table " + curNode4.Attributes(2).nodeValue + " add foreign key (" + scols + ") references " + curNode4.Attributes(0).nodeValue + " (" + sval + ") "

  • #586402
    Hi Vinni

    I suggest you to use the VB.net to C# online converter

    Try the following link
    http://www.developerfusion.com/tools/convert/vb-to-csharp/



    sqlquery(Information.UBound(sqlquery)) == "alter table " + curNode4.Attributes(2).nodeValue + " add foreign key (" + scols + ") references " + curNode4.Attributes(0).nodeValue + " (" + sval + ") "

    Prabu Thangavelu
    Follow me:
    http://prabuthangavelu.blog.com/
    or
    https://twitter.com/prabuthangavelu

  • #586410
    try this code



    sqlquery(Information.UBound(sqlquery)) == "alter table " + curNode4.Attributes(2).nodeValue + " add foreign key (" + scols + ") references " + curNode4.Attributes(0).nodeValue + " (" + sval + ") "



    hope this will help you


  • This thread is locked for new responses. Please post your comments and questions as a separate thread.
    If required, refer to the URL of this page in your new post.