Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Visual Studio 2010 and .NET 4 Six-in-One
This is the forum to discuss the Wrox book Visual Studio 2010 and .NET 4 Six-in-One by Istvan Novak, Andras Velvart, Adam Granicz, Gyorgy Balassy, Attila Hajdrik, Mitchel Sellers, Gaston Hillar, Ágnes Molnár, Joydip Kanjilal ; ISBN: 978-0-470-49948-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Visual Studio 2010 and .NET 4 Six-in-One section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old February 26th, 2012, 07:27 AM
Authorized User
Points: 66, Level: 1
Points: 66, Level: 1 Points: 66, Level: 1 Points: 66, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2009
Posts: 12
Thanks: 5
Thanked 0 Times in 0 Posts
Default Option compare

What are the differences between selecting Option Compare as binary or text? Does it affect performance?

MSDN Article at http://msdn.microsoft.com/en-us/libr...=vs.80%29.aspx
  #2 (permalink)  
Old February 28th, 2012, 11:02 AM
Friend of Wrox
Points: 742, Level: 10
Points: 742, Level: 10 Points: 742, Level: 10 Points: 742, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Location: Tehran, Iran
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Smile

Hi there

Binary compare option, compares two string by their ASCII codes, so 'Test' is different to 'test' (so it is faster)
but Text compare, compares two string as 'ignore case', so 'Test' and 'test' are the same strings (So it may be slower than binary compare, but more useful in most cases). imagine you are searching some texts from Db, if binary search option is ON, so some good results may be ignored because of 'case sensitive compare'. binary compare is useful for cases that you're searching for exactly right typed word.

text compare maybe convert two strings to UpperCase and then compares them as binary.
__________________
happy every time, happy every where

Reza Baiat
The Following User Says Thank You to irProject For This Useful Post:
jon80 (February 28th, 2012)
 


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to compare the value elayaraja.s XSLT 3 July 28th, 2008 07:48 AM
compare Neha XSLT 6 July 24th, 2008 08:11 AM
Create Check Boxes/Option buttons/Option Group hewstone999 Access VBA 1 March 14th, 2008 07:25 AM
compare nmnm XSLT 3 April 24th, 2007 08:13 AM
compare these date fields and compare and get the susanring Oracle 1 July 24th, 2006 04:58 PM



All times are GMT -4. The time now is 01:20 PM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.