CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: CString

  1. #1
    Join Date
    Apr 2002
    Posts
    9

    CString

    Is there any function that passes from String to array? I need to work with each character of the string.
    Thank u in advance


  2. #2
    Join Date
    Aug 1999
    Location
    Romania, Bucharest
    Posts
    253

    Re: CString

    you can use the operator []

    CString s( "abc" );
    ASSERT( s[1] == 'b' );

    let me know if this help


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured