text extraction

  • Thread starter Thread starter ian
  • Start date Start date
I

ian

Hello !

can anyone tell me how I can check the value of a specific position in a
string.

E.g
if the string is "SMITH", I want to assign, for example, the 4th letter to a
variable
(something like fouthChar = employeeName[4,1] ????)

Thanks,
Ian.
 
4th character employeeName[3]
a substring of say multiple characters employeeName.Substring(3, 2); // 4th and
5th characters as a string.
 
Back
Top