Results 1 to 3 of 3

Thread: Some Doubts

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2003
    Posts
    153

    Some Doubts

    whats the difference between Binary compare and Textual compare?
    can anyone tell me?
    thx

  2. #2
    Member
    Join Date
    Feb 2004
    Posts
    46
    Not 100% sure, but I think the main difference is that textual isn't case sensitive.
    writing software in C++ is like writing software in VB, except that it's slower and harder and more frustrating and more finicky and doesn't give you nice convenient shortcuts on a silver platter. And it's better. *puts on heat-reflecting armor*

  3. #3
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    Yep, i think you're right, this is straight out of the MSDN Library:

    Option Compare Binary results in string comparisons based on asort order derived from the internal binary representations of the characters. In Microsoft Windows, sort order is determined by the code page. A typical binary sort order is shown in the following example:

    A < B < E < Z < a < b < e < z < À < Ê < Ø < à < ê < ø

    Option Compare Text results in string comparisons based on a case-insensitive text sort order determined by your system'slocale. When the same characters are sorted using Option Compare Text, the following text sort order is produced:

    (A=a) < ( À=à) < (B=b) < (E=e) < (Ê=ê) < (Z=z) < (Ø=ø)
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

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