Comparing a string to tab ("\t")

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shockna1
    New Member
    • Apr 2010
    • 30

    Comparing a string to tab ("\t")

    Im trying to compare a string variable to a tab

    if (someStringVar == "\t")
    ...

    but that doesnt seem to work.
    Last edited by shockna1; Sep 30 '10, 03:15 AM. Reason: did not make sense
  • ThatThatGuy
    Recognized Expert Contributor
    • Jul 2009
    • 453

    #2
    try comparing with this "\\t"

    Comment

    • shockna1
      New Member
      • Apr 2010
      • 30

      #3
      Weerd I made a new file to try it on and \t worked fine. Maby its because Im reading it from a file?

      Comment

      Working...