Home:  Products:  PDF417 Barcode Font and Encoder  PDF417 Encoder Visual Basic Conversion:

PDF417 Encoder Visual Basic Conversion Info:

The PDF417 encoder was written in Visual Basic 6.0 and consists of about 600 lines of code. The source code was written in an easy to understand manner with several comments and will also allow programmers of other languages to easily convert the code. The following table is a list of the Visual Basic functions used in our source code and what they do. To convert the code you will need to find similar functions in your programming language. NOTE: If you convert the code into a popular language and submit it to us, we will grant you or your company licenses to some of our other products free of charge.

VB Function What it does
Asc(charater) 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
Fix(number) Returns the integer of a number
(number \ number) The "\" performs integer division on numbers rounding down
Dim variable() As Variant Defines an array within a variable. We then define array contents using the following two methods: 
variable = Array("value1", "value2", etc.) and variable(1) = "value1"