In Crystal Reports, I'm using this piece of code to concatenate characters in a string in the details section.
WhilePrintingRecords;
StringVar OptSuffix;
OptSuffix:= OptSuffix + Trim({options.number})
The options table has many value choices - ranging from A-Z and 0-9 - and some of the choices have 2 character values. ie... P1, P2, P3 and U1, U2, U3, etc...
The code seems to work fine in stringing all the characters together except when the Option.Number value begins with the letter "U". When the U# value is used, the string results in duplicating this value in the string. ie... values A,B,C,P1,U1 would result in ABCP1U1U1. Any idea why this would be happening?
WhilePrintingRecords;
StringVar OptSuffix;
OptSuffix:= OptSuffix + Trim({options.number})
The options table has many value choices - ranging from A-Z and 0-9 - and some of the choices have 2 character values. ie... P1, P2, P3 and U1, U2, U3, etc...
The code seems to work fine in stringing all the characters together except when the Option.Number value begins with the letter "U". When the U# value is used, the string results in duplicating this value in the string. ie... values A,B,C,P1,U1 would result in ABCP1U1U1. Any idea why this would be happening?