richard smith

richard smith

  • 1.4k
  • 285
  • 160k

Left Function in C#

Feb 10 2013 9:21 PM
I have several prefixes that I need to append to workbook names.  They range from: CR12, LT23, EF232, RF232..

I need a way to take the left 2 characters of the string, and say if
(left(prefix, 2) == "LT")
{
formatAdditions();
}

How can I do this in C#?


Answers (3)