|
-
Feb 21st, 2004, 11:49 PM
#1
Thread Starter
Addicted Member
Some Doubts
whats the difference between Binary compare and Textual compare?
can anyone tell me?
thx
-
Feb 21st, 2004, 11:57 PM
#2
Member
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*
-
Feb 22nd, 2004, 01:30 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|