Hello,

I have the following string in Cooridnates:

(0,0,11,11)#(1,1,22,334)#(34,54,55,66)

With the following code I delete the last coordinates:

VB Code:
  1. strCoordinates = Coordinates.Split("#")
  2.             strCoordinates(counter) = ""
  3.             Coordinates = Join(strCoordinates, "#")
  4.             TextBox1.Text = Coordinates

The coordinates now look like this:

(0,0,11,11)#(1,1,22,334)#

However they should look like this:

(0,0,11,11)#(1,1,22,334)

How do I get rid of the LAST "#"???

Thanks in advance guys