home *** CD-ROM | disk | FTP | other *** search
- /* $VER: Drucke_IDListe.adm 1.2 (22.1.95)
-
- Copyright 1995 Daniel Wicke, wicke@wpts0.physik.uni-wuppertal.de
-
- Druckt Adreßliste, sortiert nach IDs.
- Für ADM.
-
- */
- OPTIONS RESULTS
-
- Kopfzeile='Numerisches Adressenverzeichnis'
- Kopfzeile=OVERLAY(DATUM(),Kopfzeile,87)
-
- InitDrucker='#1p"zwwq'
- ExitDrucker=''
-
- MaxID=1
- MinID=1000000
- Activatefirst
-
- DO FOREVER
- GETADDRESS Adresse
- if RESULT=-1 then leave
-
- /*say Adresse.lastname Adresse.id Adresse.flags*/
- Zeile=RIGHT(Adresse.ID,5)
- Zeile=OVERLAY(Adresse.lastname||", "Adresse.firstname,Zeile,7)
- Zeile=OVERLAY(" "||Adresse.Address1,Zeile,38)
- Zeile=OVERLAY(" "||Adresse.Postcode,Zeile,68)
- Zeile=OVERLAY(" "||Adresse.City,Zeile,75)
- Zeile=OVERLAY(" "||Adresse.Telephone,Zeile,91)
- /*say Zeile*/
-
- N=Adresse.id
-
- if N>MaxID then MaxID=N
- if N<MinID then MinID=N
-
- Buffer.N=Zeile
-
- ACTIVATENEXT
- if RESULT=-1 then leave
- END
-
- /*say MinID||","||MaxID */
-
- IF 1=OPEN('Drucker','PRT:','W') THEN
- DO
- len=WRITEln('Drucker',InitDrucker||Kopfzeile)
- len=WRITEln('Drucker','')
- do NO=MinID to MaxID
- if LEFT(Buffer.NO,6) ~= "BUFFER" then
- do
- len=writeln('Drucker',Buffer.NO)
- /*say Buffer.NO*/
- end
- end
- len=WRITECH('Drucker',ExitDrucker)
- len=CLOSE('Drucker')
- END
- ELSE
- say "Konnte Drucker nicht öffnen."
-
-