!*************************** AMUS Program Label ******************************
! Filename: UPC.BAS Date: 06/29/89
! Category: UTIL Hash Code: 027-670-200-364 Version: 2.0(100)
! Initials: ATH/AM Name: ALAN J. CAVALLARO
! Company: FINEX MANAGEMENT SERVICES Telephone #: 2127255666
! Related Files:
! Min. Op. Sys.: Expertise Level: INT
! Special:
! Description: Program to illustrate how to print zero-suppressed (6 digit)
! version 'E' UPC barcode labels on an Okidata 182 (possibly 292) printer.
! Output file is UPCLAB.PRT. Enter 'E' to break out of program loop.
!*****************************************************************************
PROGRAM UPC,2.0(100)
!! Finex Management Services !! !!
!! 15 West 26th Street !!
!! New York City, New York 10010 !!
!! [212] - 725 - 5666 !!
!! This is a sample program to illustrate how to print zero-suppressed
!! version 'E' UPC barcode labels on an OkiDATA 182 printer. Using a
!! hand held CCD type scanner or a counter-top laser scanner provides
!! first time readability 99% of the time.
!! I also have a version for "CODE 39" labels which includes all alphabetic
!! characters, if any one is interested.
MAP1 GR'ON,S,1,CHR(3) ! Turn on graphics mode
MAP1 GR'OFF,S,2,CHR(3)+CHR(2) ! Turn off graphics mode
MAP1 GR'RET,S,2,CHR(3)+CHR(14) ! Do CR with 1/144" line feed
MAP1 CPI'16,S,4,CHR(27)+CHR(66)+CHR(27)+CHR(90) ! Set text to 16 CPI
MAP1 CPI'12,S,4,CHR(27)+CHR(65)+CHR(27)+CHR(90) ! Set text to 12 CPI
MAP1 DENSITY,S,2,CHR(27)+CHR(81) ! Set double pass graphics