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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top