Intermec PB50 Fingerprint Developer's Guide (old) - Page 75

Printing Characters by ASCII Values With PRINTONE

Page 75 highlights

Chapter 4 - Managing Input and Output PRINT "Price_"; "$10" The printer returns: Price_$10 • A plus sign (+) places the following string expression immediately adjacent to the preceding string expression. Example: PRINT "Price_"+"$10" The printer returns: Price_$10 Each line is terminated by a carriage return to make the PRINT statement start on a new line. However, if a PRINT statement is appended by a semicolon, the carriage return is suppressed and the next PRINT statement is printed on the same line as the preceding one: 10 PRINT "Price_";"$10"; 20 PRINT "_per_dozen" RUN The printer returns: Price_$10_per_dozen A PRINT statement can also be used to return the result of a calculation or a function: PRINT 25+25:PRINT CHR$ (65) The printer returns: 50 A If the PRINT statement is not followed by any expression, a blank line is produced. Printing Characters by ASCII Values With PRINTONE PRINTONE prints the alphanumeric representation of one or more characters, specified by their respective ASCII values, to the standard OUT channel. The PRINTONE statement is useful, for example when a certain character cannot be produced from the keyboard of the host. PRINTONE is very similar to the PRINT statement and follows the same rules regarding separating characters (commas and semicolons). Example: PRINTONE 80;114;105;99;101,36;32;49;48 The printer returns: Price $ 10 Note: The returned ASCII value depends on the currently selected character set, and on the current keypad mapping. Intermec Fingerprint Developer's Guide 59

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187

Chapter 4 — Managing Input and Output
Intermec Fingerprint Developer’s Guide
59
PRINT “Price_”; “$10”
The printer returns:
Price_$10
A plus sign (+) places the following string expression immediately adjacent to the
preceding string expression. Example:
PRINT “Price_”+“$10”
The printer returns:
Price_$10
Each line is terminated by a carriage return to make the PRINT statement start on a
new line. However, if a PRINT statement is appended by a semicolon, the carriage
return is suppressed and the next PRINT statement is printed on the same line as
the preceding one:
10 PRINT “Price_”;“$10”;
20 PRINT “_per_dozen”
RUN
The printer returns:
Price_$10_per_dozen
A PRINT statement can also be used to return the result of a calculation or a
function:
PRINT 25+25:PRINT CHR$ (65)
The printer returns:
50
A
If the PRINT statement is not followed by any expression, a blank line is produced.
Printing Characters by ASCII Values With PRINTONE
PRINTONE prints the alphanumeric representation of one or more characters,
specified by their respective ASCII values, to the standard OUT channel.
The PRINTONE statement is useful, for example when a certain character cannot be
produced from the keyboard of the host.
PRINTONE is very similar to the PRINT statement and follows the same rules
regarding separating characters (commas and semicolons). Example:
PRINTONE 80;114;105;99;101,36;32;49;48
The printer returns:
Price $ 10
Note:
The returned ASCII value depends on the currently selected character set, and
on the current keypad mapping.