home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
various
/
d16.amos
/
d16.amosSourceCode
Wrap
AMOS Source Code
|
1978-02-21
|
769b
|
39 lines
Screen Open 0,320,200,4,Lowres
Print "Invoer routine door dhr.Vogel" : Print
Input "Geef de X-Positie ";X
Input "Geef de Y-Positie ";Y
Input "Geef de lengte van de regel ";M
Input "Geef de karakter code (42 = *) ";C
Cls
Proc INVOER[X,Y,M,C]
Cls : Print "Druk op een toets..."
Wait Key
Dir$="AMOS DEMONSTRATIONS #1:"
Run "menu.amos"
Procedure INVOER[X,Y,M,C]
Shared W$
W$=""
Locate X,Y
Print Repeat$(Chr$(C),M)
Locate X,Y
Repeat
I$=""
While I$="" : I$=Inkey$ : Wend
If(Asc(I$)>64 or Asc(I$)=32) and Len(W$)<M
Shoot
Print I$;
W$=W$+I$
End If
If I$=Chr$(8)
Play 8,0
Print I$;
Print Chr$(C);
Cleft
W$=Left$(W$,Len(W$)-1)
End If
If Len(W$)=M
Play 40,0
W$=Left$(W$,M)
End If
Until I$=Chr$(13)
End Proc