vb.net - Remove "@" from String -
Obtain an email, before you want to remove the "@" symbol, make sure it does not have much One of the second checks is currently how I am doing it.
String as a slow tempEmail = contact email retard calculation = 0 if tempEmail.IndexOf ("@") & lt; & Gt; -1 Then check for a countdown = 1 tempEmail Remove (tempEmail.IndexOf ("@"), 1) End if the tempEmail.IndexOf ("@") & lt; & Gt; -1 'then check for two count + = 1 end if calculation = 1 then Juststring (contact email, 66, "LEFT_JUSTIFY"), other contact emails = BLANK_EMAIL end if
but debug After doing this, I've found that it does not really remove the "@" sign from the Strum, why?
The string is unchanged All string methods do not change the string, but instead they create a new one And do it back. Try it instead:
tempEmail = tempEmail.Remove (tempEmail.IndexOf ("@"), 1)
Comments
Post a Comment