I need to change the above code so it can read all the shape values (I do not know how many there will be as it can vary). I want to read them in such that the first set of values e.g. 1000.70,461.07 go into variables xfrom, yfrom, the last set of values e.g. 1005.90,466.20 go into variables xto, yto and all the ones in the middle go into variable x1,y1, x2,y2, x3,y3 etc.
Can someone please advise me how to go about this (even in pseudo code, I can look up the syntax myself if necessary).
How will I assign the second set of values to x1,y1, third set of values to x2,y2 etc. Must I use a for loop for this? And following on from that how will I know when I'm at the last set of values so that I can assign them to the xto, yto variables?