|
-
Feb 2nd, 2001, 04:21 PM
#1
Thread Starter
Member
Can anyone Help?
I want to draw a line between the points which i have assigned to an array. Can this be done??
-
Feb 2nd, 2001, 04:35 PM
#2
Hyperactive Member
-
Feb 2nd, 2001, 04:39 PM
#3
Thread Starter
Member
Thanks 4 u're reply Mr.ShicKadance
can u help me??
coolcat
-
Feb 2nd, 2001, 04:48 PM
#4
Use the Line method.
Code:
Form1.Line (100, 100)-(500, 500)
-
Feb 2nd, 2001, 04:51 PM
#5
Thread Starter
Member
How DO I??
How do I insert the variables into the line method??
-
Feb 2nd, 2001, 04:51 PM
#6
Hyperactive Member
Sure.
Code:
'' assume we want to draw to Me.PicPlot picture
'' assume we have an Array called Arr()
'' where the X value is determined by the index
'' where the Y value is determined by the value @ the index
Dim i as Integer
Dim LastX As Integer
Dim LastY As Integer
LastX = LBound(Arr)
LastY = Arr(LBound(Arr))
For i = (LBound(Arr) + 1) To UBound(Arr)
'' make a black line
Me.PicPlot.Line (LastX, LastY) - (i, Arr(i)), vbBlack, BF
'' store the current X,Y
LastX = i
LastY = Arr(i)
Next i
-
Feb 2nd, 2001, 04:57 PM
#7
Thread Starter
Member
Thanks Shickadance - I'll try it!!!
-
Feb 2nd, 2001, 05:52 PM
#8
Re: How DO I??
Originally posted by coolcat
How do I insert the variables into the line method??
Code:
Line (X1, Y1)-(X2-Y2)
-
Feb 3rd, 2001, 03:37 PM
#9
PowerPoster
you can use the PolyLine API function as well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|