Progress Monitor for IdealProgrammer.com
Take Swift, Intelligent, Massive, Planned, Loving, Effective (S.I.M.P.L.E.) Action to Transform Self into Ideal
Skip Repetitive Navigational Links
Home
News
Presenters
Register
Contact
Categories
Titles
Converter
Code Samples
C# ASP.NET
C# Console
HTML
JavaScript
SQL Server
VB ASP.NET
VB Console
Please login
VB.NET OptionCompare()
Description:
Illustrates using VB.NET OptionCompare() Code Example.
Example Class:
Option Compare Text Public Class clsOptionCompare Public Sub Main() '**************************************************************************************** ' Purpose: Declares the default comparison method to use when comparing string data. ' ' Syntax: Option Compare { Binary | Text } ' ' Binary - Optional - compares based on binary representation - case sensitive ' Text - Optional - compares based on text representation - case insensitive ' ' NOTE: Option statement must appear in a file before any other source code statements '**************************************************************************************** Console.WriteLine("Example #1: Option Compare Text") Console.WriteLine("A" = "a") ' Returns True 'write blank line to make output easier to read Console.WriteLine() 'Prevent console from closing before you press enter Console.ReadLine() End Sub End Class
Example Module:
Module Module1 Sub Main() Dim myclsOptionCompare As New clsOptionCompare myclsOptionCompare.Main() End Sub End Module
Home
News
Presenters
Register
Contact
Categories
Titles
Converter
Code Samples
C# ASP.NET
C# Console
HTML
JavaScript
SQL Server
VB ASP.NET
VB Console