Gladimir Posted March 30, 2003 Posted March 30, 2003 Hello everyone, I'm slowly working way around c-sharp and am trying to figure out what the C# equivalent to VB's Right function might be. I want to grab the right-most 8 characters of a string, but the best way I can see to do it is to use the string.Remove method with the string.Length property. Is that the easiest best or is there a better way that I don't know about? Quote Never ascribe to malice that which is adequately explained by incompetence. - Napoleon Bonaparte
*Experts* Volte Posted March 30, 2003 *Experts* Posted March 30, 2003 String.Remove is one way, but you can also use String.Substring, specifying String.Length - 8 as the start position. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.