home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-05-10 | 1.0 KB | 44 lines |
- ' s:AMOS-Draw.REXX
- ' Portname : AMOS-DRAW
- Dim ARG$(3)
- Screen Open 1,640,256,4,Hires
- Paper 0 : Clw
- Locate 0,20 : Centre "Demo of LRexx" : Curs Off
- C$=Chr$(0)
- ' Make a HOST called AMOS-DRAW
- A= Extension_10_033A("AMOS-DRAW"+C$)
- If A=0
- Print "Failed!"
- End
- End If
- ' Try to start the ARexx-script in S:
- A= Extension_10_037C("S:AMOS-DRAW.Rexx"+C$)
- If A=0
- Print "Failed to start program!"
- Extension_10_0350
- End
- End If
- While A$<>"LRexx0"
- A$= Extension_10_0368(0)
- If(A$<>"LRexx0") and(A$<>"") : Rem We MUST NOT reply to the end-command!!!
- Inc GOTTEN
- Proc SPLIT[A$]
- If Upper$(ARG$(0))="DRAW"
- Plot Val(ARG$(1)),Val(ARG$(2)),2
- End If
- Extension_10_0390 "",0,0 : Rem "K" isn't really needed...
- End If
- Multi Wait
- Wend
- Extension_10_0350
- Print : Print "Received";GOTTEN;" commands."
- End
- Procedure SPLIT[A$]
- Shared ARG$()
- ARG$(0)=""
- CNT= Extension_10_0512(A$)
- For I=1 To CNT
- ARG$(I-1)= Extension_10_0520(I,A$)
- ARG$(CNT)=ARG$(CNT)+P$
- Next I
- End Proc[CNT]