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

Threaded View

  1. #2
    Join Date
    Feb 2005
    Posts
    10

    Could you make it faster?

    In a very large richTextBox I want to find all letters.
    Is there something faster than :

    char[] letters={ 'a','b','c','d','e','f','g','h','i', 'j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S',
    'T','U','V','W','X','Y','Z'} ;
    richTextBox1.Text.IndexOfAny(letters, i);

    OR

    richTextBox1.Text[i].IsLetter;
    Last edited by ektoras; February 8th, 2005 at 05:55 PM.

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