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

    Try this,

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


  • #582037
    try this..


    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.