home *** CD-ROM | disk | FTP | other *** search
- REM ************************************************************************
- REM Macro to connect the dots .. to draw lines between given points
- REM this macro assumes that the points have been placed with
- REM the LOADCRD macro which also place a reference data
- REM item at each point.
- REM ************************************************************************
- d$=""
- while(1)
- {
- enter "Give Label of first point to connect (Blank to quit)" d$
- if(!strcmp(d$," ")|!strcmp(d$,""))
- {
- break
- }
- enter "Give Label of next point to connect (Blank to quit)" e$
- if(!strcmp(e$," ")|!strcmp(e$,""))
- {
- break
- }
- enquire DATA d$ x1 y1
- if(-999999=X1)
- {
- m$=join$("Cannot find Point label ", d$)
- mess m$ f36
- pause 2
- }
- else
- {
- enquire DATA e$ x2 y2
- if(x2=-999999.0)
- {
- m$=join$("Cannot find Point label ", e$)
- mess m$ F36
- pause 2
- }
- else
- {
- line [x1,y1] [x2,y2] [#]
- d$ = e$
- }
- }
- }
- end
-
-
-
-