Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 12-08-2009
Member
 
Join Date: Feb 2009
Posts: 62
Array split in VB.NET

How to split array in VB.NET? What is the syntax form split function? Where to use the split function? Can Splits function separate the defined element by , or / ?
Reply With Quote
  #2  
Old 12-08-2009
Member
 
Join Date: May 2008
Posts: 2,293
Re: Array split in VB.NET

Split function is use to split a string declare in declaration part into separate elements based on a delimiter (such as a comma or space) and stores the resulting elements in a zero-based array. Often times it is necessary to take a string and dice it up in order to extract portions to be used for some obscure purpose. Enter the Split() function. Split is a very easy concept to grasp.
Reply With Quote
  #3  
Old 12-08-2009
Member
 
Join Date: Jan 2009
Posts: 199
Re: Array split in VB.NET

Example of Split String into Array :
Code:
Dim words() As String
words() = Split(s)

Dim strarr As String
For i = 0 To UBound(words)
    ' Eliminate punctuation
    strarr = Replace(words(i), ".", "")
    strarr = Replace(tempStr, ",", "")
    strarr = Replace(tempStr, ":", "")
    If Len(tempStr) > 0 Then
       lis.AddItem strarr
    End If
Next
Reply With Quote
  #4  
Old 12-08-2009
Member
 
Join Date: Dec 2008
Posts: 177
Re: Array split in VB.NET

Split Function in vb.net: Returns a zero-based, one-dimensional array containing a specified number of substrings.

Syntax :

Split(expression[, delimiter[, limit[, compare]]])
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Array split in VB.NET"
Thread Thread Starter Forum Replies Last Post
How can I play Split Second in split screen mode with one gamepad and the keyboard? Nereus Video Games 7 03-08-2010 11:42 AM
C# array help Daren Software Development 5 03-01-2010 07:12 AM
Assigning an array to an array MACE Software Development 3 18-11-2009 05:19 PM
XML to ARRAY Vandam Software Development 3 29-06-2009 06:14 PM
How To Split Large Files into Smaller Zip files with Akhir Split Zip Spykar Tips & Tweaks 1 25-04-2009 05:17 PM


All times are GMT +5.5. The time now is 04:13 AM.