hello
how can do this
program only read other sentence after #
etc
mister.john#gotodaniweb.com2
this (mister.john#gotodaniweb.com2) is in listbox so when u click it it print one the label only the sentence after # so iit prints and show only

gotodaniweb.com2

Recommended Answers

Do a string plit, storing the values in a array.

Only look for the value at the 1 index.

Example:

Dim infoString as String = "mister.john#gotodaniweb.com2"
Dim ar() as String = infoString.Split("#")

'ar(0) = mister.john'
'ar(1) = gotodaniweb.com2'
Jump to Post

All 2 Replies

Do a string plit, storing the values in a array.

Only look for the value at the 1 index.

Example:

Dim infoString as String = "mister.john#gotodaniweb.com2"
Dim ar() as String = infoString.Split("#")

'ar(0) = mister.john'
'ar(1) = gotodaniweb.com2'

KHEKHEKHE

Please do not spam the forum. If you do not have anything that is beneficial to the post, do not post. The objective is to keep threads and short and to the point as possible. Please do not clutter up threads with useless posts.

Thank you

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.