Creating a polyline by grid values

Hi everybody :)

I need again your help… i’m trying to create a polyline that literally ‘appears’ on a square grid made by different amount of values (Y has value 1 to 31, X has alue 1 to 12). What i have to do is making appear this polyline by input two values in X and Y that corresponds to the two vertices of the polyline (for example, i input Y=3 and X=11, and the polyline appear inclined according to these values). How can i do this ? I put here a patch where i tried to do that.
Thank you so much :)

creating polyline by vertices (X Y values).v4p (20.6 kB)