home *** CD-ROM | disk | FTP | other *** search
- /* Get a SPARKS target file and put it on the current layer
- */
-
- NUMERIC DIGITS 6
- call addlib "LWModelerARexx.port", 0
- signal on error
- signal on syntax
- call addlib "rexxsupport.library", 0, -30, 0
- MATHLIB="rexxmathlib.library"
- IF POS(MATHLIB , SHOW('L')) = 0 THEN
- IF ~ADDLIB(MATHLIB , 0 , -30 , 0) THEN DO
- call notify(1,"!Can't find "MATHLIB)
- exit
- END
- file="t:target"
-
- If Exists(file)=0 then do
- call notify(1,"!There is no SPARKS target file")
- exit
- END
- i=1
-
-
- If(~open(state,file,'R')) then break
- do forever
- If EOF(state) = 1 then leave
- target.i = Readln(state)
- i=i+1
- end
-
- call add_begin()
- do j=1 to i-2
- call add_point( target.j )
- end
- call add_end()
- exit
-
- syntax:
- error:
- t=Notify(1,'!Rexx Script Error','@'ErrorText(rc),'Line 'SIGL)
- exit
-
-
-