kevinheeney
Newcomer
- Joined
- Jun 24, 2003
- Messages
- 20
I have set up a class called - linestuff -
It is used for calculating the midpoint,slope ect. of a line.
I am also using it to save the X1,y1,x2,y2 of that line.
What I hope to do is have a user draw a line and then have it set up a new object and then save the coordinates
This is working for one line but Arrays cannot be declared with new.
And then everytime they draw a line to have it make newline.x1 = e.x1 or something like that and then have n=n+1 for each new line. There has to be a way to dynamically call objects. What am I doing wrong?
I no that this is scrambled, but I had trouble describing my problem.
Kevin Heeney
VB.NET
It is used for calculating the midpoint,slope ect. of a line.
I am also using it to save the X1,y1,x2,y2 of that line.
What I hope to do is have a user draw a line and then have it set up a new object and then save the coordinates
This is working for one line but Arrays cannot be declared with new.
Public newline() As New LineStuff 'LineStuff Being the Class
And then everytime they draw a line to have it make newline.x1 = e.x1 or something like that and then have n=n+1 for each new line. There has to be a way to dynamically call objects. What am I doing wrong?
I no that this is scrambled, but I had trouble describing my problem.
Kevin Heeney
VB.NET