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#.pls tell me,pls

    If InStr(1, sqlquery(iQryCnt), "Primary key") > 0
  • #581955
    Hi Vinni,

    Use str.IndexOf() in C#.

    Hope it will help.

  • #581974
    try this code


    if (Strings.InStr(1, sqlquery(iQryCnt), "Primary key") > 0)
    {
    //write your code
    }



    hope this will help you

  • #582021
    Hi,

    Check below code,


    if ((Strings.InStr(1, sqlquery(iQryCnt), "Primary key") > 0))
    {
    }

    Regards,
    Minu


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