I have this code to fill placeholders in the template text file processing one line at a time
ThisLabelLine.SetValue(ASC:Tekst)
ThisLabelLine.replaceBetween('"','"','#NRKARTY#','KP' & KAR:KodLokalizacji & '/' & KAR:NrKartyPojazdu)
ThisLabelLine.replaceBetween('"','"','#DATAPRZYJECIA#', FORMAT(KAR:DataPrzyjecia,@D17))
ThisLabelLine.replaceBetween('"','"','#MARKAMODEL#', CLIP(MOD:MarkaModel))
[...]
ASC:Tekst = ThisLabelLine.GetValue()
I’m looping through a template text file that looks like this ( these are commands for Eltron Zebra label pronter )
N
q750
Q380,20
I8,B,001
A750,20,1,1,2,2,N,"Karta Pojazdu nr:"
A710,20,1,1,9,9,N,"#NRKARTY#"
A610,20,1,1,4,4,N,"#MARKAMODEL#"
[...]
P1
The output I was getting with 3.54
N
q750
Q380,20
I8,B,001
A750,20,1,1,2,2,N,"Karta Pojazdu nr:"
A710,20,1,1,9,9,N,"KP6/1267"
A610,20,1,1,4,4,N,"SMART FORTWO I 450"
[...]
A50,20,1,1,3,3,N,""
P1
Now with 3.80 I’m getting a lot of additional lines/special characters in the output and some lines are left blank - see attached text file OutputLabels.txt as I cannot paste these here. Full template file Template.txt also attached
Gone through change log StringTheory Complete Documentation but no trace of any changes in this method between
OutputLabels.txt (12.7 KB)
Template.txt (656 Bytes)
3.54 and 3.80.