Intermec PB51 Fingerprint Developer's Guide (old) - Page 60
Converting Input Data
View all Intermec PB51 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 60 highlights
Chapter 4 - Managing Input and Output There are various ways to produce double-byte characters from the keyboard of the computer. By selecting the proper character set using a NASCD statement, the typed-in ASCII values are translated to the corresponding Unicode values, so the desired glyph will be printed. Double-byte fonts and character set tables are available from Intermec. For information, contact your Intermec sales representative. In this example, the text field in line 50 contains both single- and double-byte fonts. The double-byte font and its character set are stored in a Font Install Card. The program yields a printed text line that starts with the Latin character A (ASCII 65 dec.) followed by the Chinese font that corresponds to the address 161+162 dec. in the character set "BIG5.NCD." 10 NASC 46 20 FONT "Swiss 721 BT", 24, 10 30 NASCD "/rom/BIG5.NCD" 40 FONTD "Chinese" 50 PRTXT CHR$(65);CHR$(161);CHR$(162) 60 PRINTFEED RUN Converting Input Data These Fingerprint commands are used to convert data in numeric or string expressions: • ABS returns the absolute value of a numeric expression. • ASC returns the ASCII value of the first character in a string expression. • CHR$ returns the readable character of a specified ASCII value. This is useful when a printer keyboard cannot produce a particular character. • FLOATCALC$ calculates float numbers using arithmetic operators. • FORMAT$ formats a number represented by a string and is typically used with FLOATCALC$. • INSTR searches a string for a specific character or string of characters and returns its position if found. • LEFT$ returns a specified number of characters from the beginning (left end) of a string. • LEN returns the total number of characters and spaces in a string expression. • MID$ returns a portion of a string expression. You can specify the start position and the number of characters to return. • RIGHT$ returns a specified number of characters from the end (right side) of a string. • SGN returns the sign of a numeric expression. • SPACE$ returns a specified number of space characters. This command is useful for creating tables with monospace characters. • STR$ returns the string representation of a numeric expression. 44 Intermec Fingerprint Developer's Guide