Skip to main content
gamedev.net
🔒 Locked

.NET string question.

Started by thedevdan May 13, 2004 at 9:50 PM 1 replies 200+ views
Original Post
thedevdan
thedevdan
I am working with strings, and what I am trying to do is copy a portion of the string (from the middle) to a new string. However, there is apperently no built in function that allows you to do that. The closest, copyTo(...), fills an array of chars, and you can''t assign an array of chars to a string. How am I going to do this (besides adding letter by letter to the new string)?
Not giving is not stealing.
SiCrane
SiCrane
Maybe I''m missing something, but why don''t you just use Substring()?
thedevdan
thedevdan
quote:
Original post by SiCrane
Maybe I'm missing something, but why don't you just use Substring()?


Hmm?

I will look that up...

Hahaha, I had been looking through the docs for about 45 minutes, and never saw that!

Thanks alot, SiCrane, I can get back to actually working!


[edited by - thedevdan on May 13, 2004 10:59:16 PM]
Not giving is not stealing.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.