|
Programming Reference

Function DoRMFormatting(input: Pchar; format, spaced: integer): Pchar; StdCall;
RMFormatting stands for Royal Mail Format
This will produce output formatted according to the value of format
parameter : input which is a string type, format which is an integer [standard is
4] representing the number of characters that are grouped together.
Spaced is the space delimeter between the Check Digit and the Human Readable text
within the generated barcode. Default is 0 which inserts a space. Using 1 for this
parameter will eliminate the space.
This/All functions will return a string
example
input string = 123456789
This function will return
12 34 56 78 7 if format is 2
1234 5678 7 if format is 4
Therefore to generate a valid barcode for PayPoint you need to use the following
To produce the Human Readable Text
dormformatting(your input data string, 4, 0) - with space
or
dormformatting(your input data string, 4, 1) - without space
to produce the barcode
DoPPBar(your input data string)
All functions check input for non numeric data, and if found, the retun string will
be Error in input
|