invaricconsulting Posted August 18, 2011 Share Posted August 18, 2011 I am trying to concatenate several data fields into a PDF417 bar code, and am being asked by the customer to include tab delimiters between the fields. The rule, in shortened form, looks like this: return MakePDF417Barcode(Field("barcode ID")+'<t>'+Field("First Name")+'<t>'+Field("Last Name")+'<t>'+Field("Company"), 0, 8, 12, 0, 3, 0); Although "Treat returned strings as tagged text" IS checked, I get reported back that this returns <t> and not a tab. I have also tried entering tabs via the keyboard which I am told returns a string of spaces instead of a tab. I am hoping someone has run across this, or knows what needs to happen to deliver a PDF417 bar code with tab-delimited fields. Link to comment Share on other sites More sharing options...
Dan Korn Posted August 19, 2011 Share Posted August 19, 2011 The code to specify a tab character in a JavaScript literal string is '\t'. Try this: return MakePDF417Barcode(Field("barcode ID")+'\t'+Field("First Name")+'\t'+Field("Last Name")+'\t'+Field("Company"), 0, 8, 12, 0, 3, 0); Link to comment Share on other sites More sharing options...
invaricconsulting Posted August 19, 2011 Author Share Posted August 19, 2011 The customer says this is the tab separator that they needed. Another crisis averted. Thanks Dan. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.