Click here to Skip to main content
15,921,226 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: picture appearing in VB 2005 express edition Pin
ali3nz0r20-Jun-07 15:08
ali3nz0r20-Jun-07 15:08 
GeneralRe: picture appearing in VB 2005 express edition Pin
Christian Graus20-Jun-07 15:14
protectorChristian Graus20-Jun-07 15:14 
GeneralRe: picture appearing in VB 2005 express edition Pin
ali3nz0r20-Jun-07 15:16
ali3nz0r20-Jun-07 15:16 
GeneralRe: picture appearing in VB 2005 express edition Pin
Christian Graus20-Jun-07 15:51
protectorChristian Graus20-Jun-07 15:51 
QuestionUsing Multiple Forms Pin
MARKSHAM20-Jun-07 12:15
MARKSHAM20-Jun-07 12:15 
AnswerRe: Using Multiple Forms Pin
Christian Graus20-Jun-07 13:41
protectorChristian Graus20-Jun-07 13:41 
GeneralRe: Using Multiple Forms Pin
MARKSHAM22-Jun-07 4:25
MARKSHAM22-Jun-07 4:25 
Questionstring tokenization Pin
hsprasain20-Jun-07 11:49
hsprasain20-Jun-07 11:49 
Hi all,

I would be really thankful to you all if I could help me to slove my the following problem.

I've written following code to tokenize my string in VB.NET which use " " i.e space as delimiters.

Dim data(100,100) as string

Dim value As String = "&&&&&&&&&&&&&& Tech&&&&&&&&&Repu &&&& blic.com" # Input string where & is a space. I used & as space while posting message since space was ignored while posting message
Dim pattern As String = " " # delimiters

sites = value.Split(pattern)
k = 0
For Each s In sites

If s <> pattern Then
data(0, k) = s
outFile.WriteLine(data(0, k))
k = k + 1
Else
MessageBox.Show(" Space found")
End If
Next s

According to my understanding, the program should ignore the space and assign

data(0,0)=Tech
data(0,1)=Repu
data(0,2)=blic.com

But unfortunately, else part of code is never executed and some spaces are stored on dataarray along with the string.

Can anybody help me to achieve me my goal or any other advise for me?
My Goal is to assign:
data(0,0)=Tech
data(0,1)=Repu
data(0,2)=blic.com



hsprasain
AnswerRe: string tokenization Pin
TwoFaced20-Jun-07 12:16
TwoFaced20-Jun-07 12:16 
GeneralRe: string tokenization Pin
hsprasain20-Jun-07 12:56
hsprasain20-Jun-07 12:56 
AnswerRe: string tokenization Pin
TwoFaced20-Jun-07 12:25
TwoFaced20-Jun-07 12:25 
QuestionMedia control Pin
stijn.janssen20-Jun-07 8:47
stijn.janssen20-Jun-07 8:47 
AnswerRe: Media control Pin
Dave Kreskowiak21-Jun-07 4:19
mveDave Kreskowiak21-Jun-07 4:19 
Questionprogress bar monitor files downloaded from a server Pin
steve_rm20-Jun-07 7:03
steve_rm20-Jun-07 7:03 
AnswerRe: progress bar monitor files downloaded from a server Pin
svanwass20-Jun-07 8:12
svanwass20-Jun-07 8:12 
QuestionWriting to SQL server w/ VB.Net Pin
svanwass20-Jun-07 4:19
svanwass20-Jun-07 4:19 
AnswerRe: Writing to SQL server w/ VB.Net Pin
Dave Kreskowiak21-Jun-07 4:16
mveDave Kreskowiak21-Jun-07 4:16 
QuestionHow do I Empty a ComboBox after set DataSource Pin
Kerry Drake20-Jun-07 3:16
Kerry Drake20-Jun-07 3:16 
AnswerRe: How do I Empty a ComboBox after set DataSource Pin
ctwalker20-Jun-07 4:01
ctwalker20-Jun-07 4:01 
GeneralRe: How do I Empty a ComboBox after set DataSource Pin
Kerry Drake20-Jun-07 6:01
Kerry Drake20-Jun-07 6:01 
QuestionUserName asn Password in Smtp. how? Pin
alexburzak20-Jun-07 2:53
alexburzak20-Jun-07 2:53 
AnswerRe: UserName asn Password in Smtp. how? Pin
Sanjay Kunjam20-Jun-07 3:01
Sanjay Kunjam20-Jun-07 3:01 
GeneralRe: UserName asn Password in Smtp. how? Pin
alexburzak20-Jun-07 3:16
alexburzak20-Jun-07 3:16 
QuestionHow to insert Null Values Pin
Vimalsoft(Pty) Ltd20-Jun-07 1:34
professionalVimalsoft(Pty) Ltd20-Jun-07 1:34 
AnswerRe: How to insert Null Values Pin
Christian Graus20-Jun-07 11:56
protectorChristian Graus20-Jun-07 11:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.