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

    Pls tell me,below statement is a vb6 language,then pls write dis statements into c#,

    If Trim(str) <> ""
  • #581950
    Hi Vinni,

    Try this:

    if(str.Trim() != "")
    {
    //ur code
    }

    Hope it will help.

  • #581976
    try this code



    if (!string.IsNullOrEmpty(Strings.Trim(str())))
    {
    //your code
    }



    hope this will help you

  • #582023
    Hi,

    Try this,


    if (!string.IsNullOrEmpty(Strings.Trim(str)))
    {
    //Your code comes here...
    }

    Regards,
    Minu

  • #582037
    try this..

    if(str.Trim()!="")
    {}

    Heartly Regis,


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