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 Split()
Description:
Illustrates using VB.NET Split() Code Example.
Example Class:
Public Class clsSplit Public Sub Main() '**************************************************************************************** ' Example #1: Split(string[, delimiter][, limit]) ' Parses a string into a one-dimensional array of one or more ' substrings. If the delimiter is not specified, space is used. ' If the limit is not specified, all substrings are returned '**************************************************************************************** Console.WriteLine("Example #1: Split(string[, delimiter][, limit])") Dim strField As String = "This is my string" Dim aryStrings As Array aryStrings = Split(strField) For i = 0 To aryStrings.Length - 1 Console.WriteLine(aryStrings(i)) Next 'Console.WriteLine(Split(strField, strOldField, strNewField)) 'Returns This is your string '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 myclsSplit As New clsSplit myclsSplit.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