How to select letters in a string?
-
-
Hello everyone, I have a String and would like to be able to pick let's say First, Second, and the Last letter and create a new string. Can someone be kind enough to tell me how I can get this done? Thank you so much and have a great day. Khoramdin
str[0] + str[1] + str[str.Length-1]
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
Hello everyone, I have a String and would like to be able to pick let's say First, Second, and the Last letter and create a new string. Can someone be kind enough to tell me how I can get this done? Thank you so much and have a great day. Khoramdin