String- Handling """

johnvista

Member
Joined
Jun 16, 2006
Messages
6
Programming Experience
Beginner
I have got a string in VB.NET 2005, and whats really annoying is its like this

"mytext*ghfhfgg*fdgfdgd"

How can I remove the " from the start and end of the string so it becomes:

mytext*ghfhfgg*fdgfdgd



Ty :)
 
you can use Chr(34) as "
 
You don't use Replace because you only want to remove leading and trailing characters. The correct method to do that is Trim:
VB.NET:
Expand Collapse Copy
Str = Str.Trim(""""c)
 
Back
Top