473,394 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 804

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

Similar topics

30
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
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
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
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
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
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
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
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
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...
2
by: sarah aziz | last post by:
Hello all I am trying to retrieve the data from mysql database by php to plot a flot graph can anyone help me please this is all i have done for now Php $sql = mysql_query("SELECT count(Msg_ID)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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...

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.