Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 26th, 2012, 08:27 AM
Authorized User
 
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
 
Old February 28th, 2012, 12:02 PM
Friend of Wrox
 
Join Date: Nov 2009
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)





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.