Hello.
Which version of uPlan or uDirect are you using?
"dpbc" sounds a little Chinese to me, as I do not usually use PostNet
codebars (BTW, hello to our Chinese group members and visitors ;-)
As far as I can see, the XMPPostNet QLingo function expects one single
parameter, which can be either a number or a character string, both
composed of exactly 5, 9 or 11 digits (providing different length will
result in an empty string in uDirect 4.6.1, or in a syntax warning +
empty string in uPlan 4.6.1).
Combining separate fields into a single value certainly depends on
their type. Should they already be string fields, you just need to
concatenate them with the QLingo "&":
|->[field1] & |->[field2]
Should they be number fields, you might first convert them to strings
before concatenating them:
AsString(|->[field1]) & AsString(|->[field2])
Should you want to force a particular format during the number-to-
string conversion, use the QLingo FormatNumber function:
FormatNumber(|->[field1], "000") & FormatNumber(AsString(|->[field2],
"#.00")
In your case, I guess it will be
FormatNumber(|->[zip], "00000") & FormatNumber(AsString(|->
[zip_plus_four], "0000") & FormatNumber(|->[dpbc], "00")
Total = 5 + 4 + 2 = 11 digits, great!
No need to take care of the PostNet checksum, which is calculted and
added to the barcode string by the function, along with the "*" header
and trailer.
On Aug 25, 12:00 am, Blackbird <
blackbirdsbrokenwi...@gmail.com>
wrote: