Appendix B – Sample Programs
Class Series Programmer’s Manual
151
‘Concatenate all the dynamic data fields with the constant
header strings, terminated with <cr> Chr$(13)
OrderData = OrderTxt & txtOrderNo.Text & Chr$(13) &
OrderBC & txtOrderNo.Text & Chr$(13) & CustomerTxt &
txtCustomer.Text
Item1 = Item1NO & txtItem1.Text & Chr$(13) & Item1BC &
txtItem1.Text & Chr$(13) & Item1Txt & txtItem1Desc.Text &
Chr$(13) & Item1Qty & txtItem1Qty.Text
‘Concatinate entire label format and send out serial port
PrintLabel = CharSet & MaxLength & Chr$(13) & CharSet &
StartLabel & Chr$(13) & PrintDensity & Chr$(13) & Image1 &
Chr$(13) & OrderData & Chr$(13) & Item1 & Chr$(13) & Fixed &
Chr$(13) & EndLabel
Comm1.Output = PrintLabelEnd Sub
‘Display the record form on the screen
Private Sub Form_Load()
Fixed = Itm1 & Chr$(13) & Chr$(13) & Qty1 & Chr$(13) &
Chr$(13) & BoxPos1 & Boxsize & Chr$(13)
CharSet = Chr$(126)
‘Alternate <stx> character ~
MComm.PortOpen = 1
‘Open the serial port
End Sub
‘Exit the program by clicking Exit button with the mouse
Private Sub cmdExit_Click()
Comm1.PortOpen = 0
‘Close down the serial port
End
End Sub
Summary of Contents for Ex2
Page 2: ......
Page 4: ......
Page 15: ...xi Appendix V 281 Bar Code Symbology Information Resources 281 Glossary 283 ...
Page 16: ...xii ...
Page 30: ...Immediate Command Functions 14 Class Series Programmer s Manual ...
Page 52: ...System Level Command Functions 36 Class Series Programmer s Manual ...
Page 144: ...Label Formatting Command Functions 128 Class Series Programmer s Manual ...
Page 162: ...Generating Label Formats 146 Class Series Programmer s Manual ...
Page 182: ...Appendix D Reset Codes 166 Class Series Programmer s Manual ...
Page 192: ...Appendix E Single Byte Symbol Sets 176 Class Series Programmer s Manual ...
Page 236: ...Appendix G Barcode Details 220 Class Series Programmer s Manual ...
Page 242: ...Appendix I Symbol Sets and Character Maps 226 Class Series Programmer s Manual ...
Page 272: ...Appendix P UPC A and EAN 13 256 Class Series Programmer s Manual ...
Page 282: ...Appendix R Plug and Play IDs 266 Class Series Programmer s Manual ...
Page 296: ...Appendix U WiFi Region Country Codes 280 Class Series Programmer s Manual ...
Page 302: ...Glossary 286 Class Series Programmer s Manual ...