Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Never ascribe to malice that which is adequately explained by incompetence. - Napoleon Bonaparte

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...