A-94
Caret Feature Code Examples
Below are examples of code written in BASIC (Using the caret
feature) showing how many of the LabelWriter commands are
used.
HT Horizontal Tab Example
OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1
PRINT #1, “^027*Total^0091.99^010^012”;
Example 1: HT Horizontal Tab
LF Line Feed Example
OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1
PRINT #1, “^027*Line 1^010^010^010Line 4^010^012”;
Example 2: LF Line Feed
FF Form Feed Example
OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1
PRINT #1, “^027*^029L^001^150Feed Length"
PRINT #1,“=2inches^010^012”;
Example 3: FF Form Feed
CR Carriage Return Example
OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1
PRINT #1, “^027*Line of Text^013^012”;
Example 4: CR Carriage Return
SO Set Font to Double Wide Example
OPEN "COM1:9600,N,8,1" FOR OUTPUT AS #1
PRINT #1, “^027*Normal ^014Wide^020Normal^010^012”;
Example 5: SO Set Font to Double Wide