PC Review


Reply
Thread Tools Rate Thread

How to transfer a string to char array

 
 
ad
Guest
Posts: n/a
 
      19th Jun 2005
I have a string variable say:

string sMyString="aeiou"

How can I transfer sMyString into a char array?


 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      19th Jun 2005


ad wrote:

> I have a string variable say:
>
> string sMyString="aeiou"
>
> How can I transfer sMyString into a char array?


sMyString.ToCharArray()
does that.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      19th Jun 2005
ad <(E-Mail Removed)> wrote:
> I have a string variable say:
>
> string sMyString="aeiou"
>
> How can I transfer sMyString into a char array?


Please see the answers you received when you asked the same question
yesterday.

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
 
Reply With Quote
 
rossum
Guest
Posts: n/a
 
      20th Jun 2005
On Sun, 19 Jun 2005 19:38:39 +0800, "ad" <(E-Mail Removed)> wrote:

>I have a string variable say:
>
>string sMyString="aeiou"
>
>How can I transfer sMyString into a char array?
>


Use sMyString.ToCharArray() as MuZZy/Andre indicated in his answer to
your previous question on this subject.

rossum



The ultimate truth is that there is no ultimate truth
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Char Char Char1 Char Char Char,Char Char Char1 Char borkena Microsoft Word Document Management 2 8th May 2008 04:36 PM
Ever seen "Char Char Char Char Char Char1 Char Char Ch" style? =?Utf-8?B?TWFyaWx5bg==?= Microsoft Word Document Management 2 4th Oct 2006 04:47 PM
Char Char Char Char =?Utf-8?B?UmFjaGVs?= Microsoft Word Document Management 2 8th Jun 2006 09:52 AM
Char Char Char Char =?Utf-8?B?UmFjaGVs?= Microsoft Word Document Management 0 7th Jun 2006 02:51 PM
Formatting changed to Char Char Char Char... =?Utf-8?B?TWVsaXNzYQ==?= Microsoft Word Document Management 10 14th Apr 2006 07:32 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:41 PM.