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

    Hi to all,how can write dis below statements in c# language.

    vb6 statements:

    If schematype <= 3 Then
    ReDim sQuery(1)
    sQuery(1) = "delete from exportschemainfo where schemaname ='" & sSchemaname & "' and schematype <=" & schematype
    Else
    ReDim sQuery(2)
  • #589949
    Try this...

    I think there is no equivalent command for ReDim. So i suggest you to
    create a new array.


    if(schematype <= 3)
    {
    string[] squery=new string();
    squery = "delete from exportschemainfo where schemaname ='" + sSchemaname + "' and schematype <=" + schematype;
    }
    else
    {
    string[] squery1=new string();
    }

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

  • #589957
    [Response removed by Admin. Read forum policies.]

  • #590031
    try this code

    if (SchemaType <= 3) {
    // ERROR: Not supported in C#: ReDimStatement

    sQuery(1) = "delete from exportschemainfo where schemaname ='" + sSchemaname + "' and schematype <=" + SchemaType;
    } else {
    // ERROR: Not supported in C#: ReDimStatement

    }



    hope this will help you

  • #590070
    Yeh you can try this one

    if (SchemaType <= 3) {
    string[1] squery=new string();
    sQuery(1) = "delete from exportschemainfo where schemaname ='" + sSchemaname + "' and schematype <=" + SchemaType;
    } else {
    string[2] squery=new string();
    }

    Try this n let me know


  • 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.