473,513 Members | 2,454 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

plot lines

I want to plot the lines in my form given only X and Y
coordinates and I have to plot lines X and Y according to
the given Surveyid.FOR ex:-
x y Surveyid
10 10 5
12 12 5
17 17 5
27 27 5
31 31 5
33 33 14
37 37 14
41 41 18
51 51 18
71 71 23
and plenty more.

Note:
In drawing the lines in my form there should'nt be any
connection between distinct surveyid like after drawing
lines for surveyid=5 it should'nt have any connection with
surveyid=14 or surveyid=18 or surveyid=23.All the lines
should be visible within just one button click.
I had tried solving this problem but not yet succesfulled.
so please help.Here is my coding,but incomplete.
Private Sub cmdclick_Click()
On Error Resume Next
'Call my
Do
x1 = Val(rs.Fields("SurveyID").Value)
a = x1

If a = x1 Then
Dim i As Integer
For i = 0 To (rs.RecordCount - 1)
x2 = Val(CStr(rs.Fields("X").Value))
y2 = Val(CStr(rs.Fields("Y").Value))
Circle (x2 * 10, -y2 * 10), 50, vbRed

rs.MoveNext

x3 = Val(CStr(rs.Fields("X").Value))
y3 = Val(CStr(rs.Fields("Y").Value))

Line (x2 * 10, -y2 * 10)-(x3 * 10, -y3 * 10),
vbGreen
Circle (x3 * 10, -y3 * 10), 50, vbRed
Next
Exit Sub
End If

Loop Until a = 20

End Sub
Thanks for ur help.
Nov 20 '05 #1
0 1023

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

30
4113
by: nephish | last post by:
Hey there, i have tried about every graphing package for python i can get to work on my system. gnuplot, pychart, biggles, gdchart, etc.. (cant get matplot to work) so far, they all are working...
6
17671
by: googlinggoogler | last post by:
Hiya, I've got a PIC microcontroller reading me humidity data via rs232, this is in ASCII format. I can view this data easily using hyperterminal or pyserial and convert it to its value...
0
807
by: PremKumar | last post by:
I want to plot the lines in my form given only X and Y coordinates and I have to plot lines X and Y according to the given Surveyid.FOR ex:- x y Surveyid 10 10 5 12 12 5 17 ...
0
1413
by: yadin | last post by:
does anyone know how to plot multimple lines like lets say... 50 lines each liine is defined beetween two given points using VTK. a litlle example will be ok please on python and VTK thank you
1
2408
by: oyinbo55 | last post by:
I am trying to use the pylab plot command on my laptop running Ubuntu 6.06 (Dapper). Although the plot command works fine on my XP desktop at work, I cannot open the plot window on the laptop. I...
2
3317
by: itdevries | last post by:
Hi, I've been looking for a basic c++ 2D plot library to use with windows (and visual studio). I was a bit overwhelmed by all the options I found. Can someone here recommend a basic 2D plot...
0
974
by: chavdar.dybov | last post by:
SELL OUT land area with 12,681 ha, located at the entrance to the town of Pazardzhik(Bulgaria) in city limits and has 106 meters individual . "Dimcho Debelyanov (Miryansko road). A plot in the new...
0
1235
by: saleinbulgaria | last post by:
SELL OUT land area with 12,681 ha, located at the entrance to the town of Pazardzhik(Bulgaria) in city limits and has 106 meters individual . "Dimcho Debelyanov (Miryansko road). A plot in the new...
1
5572
by: kjb034 | last post by:
I have the following macro. It works fine, creating an XY scatter plot in Excel 2003, but when one of my users runs it in Excel 2007, it creates a scatter plot with lines. Why does it do this? I...
0
7259
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7380
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7523
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.