Jump to content
Xtreme .Net Talk

Recommended Posts

  • Leaders
Posted

How exactly are you "getting" abc from the string "abcdefg"?

By S.Substring(0, 3)

 

You can extract the remainder of a string from a specific point by supplying only the starting value

S.SubString(5)

 

For starting at X, the number of characters away from the last character, you'd do

S.SubString(S.Length - X - 1)

 

If you want the last Y # of characters from the end of the string

S.SubString(S.Length - Y)

 

:)

Iceplug, USN

One of my coworkers thinks that I believe that drawing bullets is the most efficient way of drawing bullets. Whatever!!! :-(

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...