Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Using Split Property on TextBox
I want to have a TextBox where the user can enter in emails and these emails can be passed to an SMTP function where it is added to the message as a CC. I'm using the below code to try and add a ; in between each email before it is passed to the function. The problem is, it doesn't work. It also doesn't throw any errors. Can anyone tell me what I am doing wrong. If any other info is needed please let me know also. Thanks.
Dim mcc As String
Dim cccopy As String
mcc = nvarP7copy.Text.ToString
If mcc <> "" Or mcc <> String.Empty Then
Dim strCC() As String = Split(mcc, ";")
Dim strThisCC As String
For Each strThisCC In strCC
cccopy = Trim(strThisCC)
0 · ·