A
Adam Honek
I have the following code below.
The thing is, even if txtCCEmailAddress.Text is empty (no text), CCRecipeant
will return a Ubound() higher than 0 and still go in the loop.
If there's nothing to split how can CCRecipeant be a positive UBound value?
'Get the number of specified CC recipeants
CCRecipeant = txtCCEmailAddress.Text.Split(";")
'Now we need to add each one
For intCounter = 0 To CCRecipeant.GetUpperBound(0)
If CCRecipeant.GetUpperBound(0) >= 0 Then
..........some code here
End If
Next
Thanks,
Adam
The thing is, even if txtCCEmailAddress.Text is empty (no text), CCRecipeant
will return a Ubound() higher than 0 and still go in the loop.
If there's nothing to split how can CCRecipeant be a positive UBound value?
'Get the number of specified CC recipeants
CCRecipeant = txtCCEmailAddress.Text.Split(";")
'Now we need to add each one
For intCounter = 0 To CCRecipeant.GetUpperBound(0)
If CCRecipeant.GetUpperBound(0) >= 0 Then
..........some code here
End If
Next
Thanks,
Adam