| Home: Products: Font Tools: Source Code for Barcode Fonts: |
Source Code for Barcode Fonts
|
| VB Function | What it does |
| Asc(character) | Converts a character to the ASCII value |
| Chr(n) | Returns the character represented by the number n in ASCII |
| Len(string) | Returns the length of a string |
| Mid(string, x, n) | Returns n number characters from a string starting from location x |
| (number Mod n) | Returns the remainder after number is divided by n |
| Right$(string, n) | Returns n characters starting from the right of the string |
| RTrim(LTrim(string)) | Removes spaces before and after a string |
For
all functions below the data input type is a single string. A number may
be required for additional parameters. For example, Code128c("123456",0).
For all number symbologies such as POSTNET and UPC, dashes or spaces may
be inputted for easier readability which will be filtered out by the function
before the barcode is generated. For UPC-A, UPC-E & EAN-13 enter the +2
and +5 add-on codes by just adding them to the end of the string.
| Function | Notes |
| Code128(Data, Number) | If there is a doubt as to which Code 128
set is for the application, then use this one. This is a "Code
128 Auto" function that will automatically encode any data from
ASCII 0 to ASCII 127. It will automatically switch to character
set C for numbers also. To encode alpha-numeric UCC/EAN-128, ASCII 202 or character Ê is entered as the FNC1 before each AI. For example, the UCC number of (8100)712345(21)12WH5678 should be entered as: Ê8100712345Ê2112WH5678. More information about AI's and UCC/EAN-128 is located here. (Data, 0) formats barcode output string for the Code 128 barcode fonts. (Data, 1) returns the human readable data. (Data, 2) returns only the check digit. |
| Code128a() | Use the characters from set B to print characters not on the keyboard; the scanner will scan characters from set A. Formats output to the Code 128 barcode fonts. |
| Code128b() | Returns codes formatted to the Code 128 character set B. Formats output to the Code 128 barcode fonts. |
| Code128c(Data, Number) | This code128 function "interleaves"
numbers into pairs for high density. (Data, 0) formats output to the Code 128 barcode fonts. (Data, 1) returns the human readable data with the check digit included. (Data, 2) returns only the check digit. |
| I2of5() | This function "interleaves" numbers into pairs for high density without check digits and formats the return string to the Interleaved 2 of 5 fonts. |
| I2of5Mod10(Data, Number) | (Data, 0) performs the mod10 checksum
calculation for increased accuracy and formats the return string to the
Interleaved 2 of 5 fonts.
USPS requires MOD
10 checksums for special services and for SSC-14 when
using Interleaved 2 of 5 for that purpose. (Data, 1) returns the human readable data with the MOD10 check digit included. (Data, 2) returns the MOD10 check digit. |
| Code39() | Formats the output to print using Code 39 fonts. |
| Code39Mod43(Data, Number) | (Data, 0) performs the
mod43 checksum calculation for increased accuracy and then formats
the output to print using Code 39 fonts. The mod43 checksum
is usually required for LOGMARS applications. (Data, 1) returns the human readable data with the check digit included. (Data, 2) returns only the check digit. |
| Codabar() | Formats the output to print using Codabar fonts. |
| UCC128() | This symbology option encodes an even number of number digits and includes the FNC1 character in set C as required. Use Code 128 Auto to encode additional FNC1 codes or data containing text or odd numbers. Use the UCC128 function only for UCC-128 applications where the input data is an even number such as in SSCC-18 and SCC-14 barcodes. For example, to encode an SSCC-18 barcode, the user would enter 00000123455555555558 as the data input. For more information, please visit here. |
| SCC14(Data, Number) | SCC14(Data, 0) generates the MOD10 required
and then formats the output to print EAN-14 and SCC-14 using
Code 128 fonts. The input for Data must be a 13 to 17
digit number; however, only 13 are needed. The required application
identifier of (01) is automatically added. SCC14(Data, 1) returns the human readable data for SCC14 / EAN14. SCC14(Data, 2) returns the MOD10 check digit. |
| SSCC18(Data, Number) | SCC18(Data, 0) generates
the MOD10 required for SSCC-18 and then formats the output to
print SSCC-18 using Code 128 fonts. The input for Data
must be a 17 to 21 digit number; however, only 17 are needed.
The required application identifier of (00) is automatically
added. SCC18(Data, 1) returns the human readable data for SCC-18. SCC18(Data, 2) returns the MOD10 check digit. |
| Postnet(Data, Number) | Enter a single string of Zip, Zip + 4 or
Zip + 4 + Delivery Point. The input for Data must be
a number and can include dashes and spaces. (Data, 0) formats output to the POSTNET barcode fonts. (Data, 1) returns the human readable data with the check digit included. (Data, 2) returns only the check digit. |
| USPSss(Data, Number) | Used for 20 digit USPS
special services numbers with Code 128 fonts. Enter a 19 or
20 digit number; only the first 19 are used. (Data, 0) formats output to the Code 128 barcode fonts. (Data, 1) returns the human readable data with the check digit included. (Data, 2) returns only the check digit. |
| RM4SCC() | Formats the output to print using RM4SCC fonts. Checksum calculated according to the mailsort customer barcoding specification. |
| MSI(Data, Number) | (Data, 0) formats output
to the MSI barcode fonts. (Data, 1) returns the human readable data with the check digit included. (Data, 2) returns only the check digit. |
| Code11() | Only the "C" check digit is calculated which is the standard when encoding 10 digits or less. |
| UPCa() | Enter UPC-A with or without a check digit, add-ons are supported. Formats output to the UPC/EAN barcode font. |
| UPCe() | Enter the full 11 or 12 digit UPC-A number. The purpose of this function is to print the UPC-E barcode from a UPC-A barcode that can be compressed. It will print a UPC-A if it cannot be compressed by zero suppression rules. Formats output to the UPC/EAN barcode font. |
| EAN13() | Enter EAN-13 with or without a check digit, add-ons are supported. Formats output to the UPC/EAN barcode font. |
| EAN8() | Enter exactly 7 characters (EAN-8 without the check digit). Formats output to the UPC/EAN barcode font. |
|
|
|
Product Quick Links: [Barcode Fonts | Font Tools | Components | Label Software | Scanners | Printers | RFID | Product Index] |
© Copyright 2001-2008 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.
|
Over 70% of Fortune 100 companies use IDAutomation's products to automate their businesses. |