Sample Script A-1

SAMPLE SCRIPT

This chapter provides a sample script for retail printing. Depending on the character entered by the
user, a different format prints. One is a compliance format, another is a receiving format, and the
other is a sale format. Use this script as a guide when you program the printer. See Chapter 4,
“Program Structure” for additional programming tips.
;Script File
;Sample Script
;Author: A.Kramer
;Date: Sept. 6, 2001
;This sample prints one of three formats, depending on the character
;entered by the user.
Define SCRATCH, 5000, A
AUTOSTART
Function Start
Begin
APPVERSION "AnyStore","V1.0"
call SendFmt
call main
End
Function Main
Begin
*Moredata
fetch comm
switch input
case "C"
call Comply
case "R"
call Receiving
case "S"
call Sale
default
clear input
endswitch
jump *Moredata
End
A