Hi, |
Re: Remove Carriage Returns from an Attribute DXL -Louie |
Re: Remove Carriage Returns from an Attribute DXL llandale - Thu Mar 29 15:00:40 EDT 2012 void addNewLineSeparator(Buffer& b) { if (length(b) > 0) { b += "\n" } } void display(string s) I took note of the line of code with the "\n". I recalled that this was the designator for a carraige return. I changed it to this below: void addNewLineSeparator(Buffer& b) { if (length(b) > 0) { b += ", " } } void display(string s) ...and it worked for only that object i had elected. I went ahead and selected all objects (made 'em pink) and then updated the attribute again and it worked for the entire document! Louie, is this what you were speaking of or did i discover something different? I'm curious about your solution and would like to learn more. thanks, John |
Re: Remove Carriage Returns from an Attribute DXL btela2000 - Thu Mar 29 18:06:56 EDT 2012 void addNewLineSeparator(Buffer& b) { if (length(b) > 0) { b += "\n" } } void display(string s) I took note of the line of code with the "\n". I recalled that this was the designator for a carraige return. I changed it to this below: void addNewLineSeparator(Buffer& b) { if (length(b) > 0) { b += ", " } } void display(string s) ...and it worked for only that object i had elected. I went ahead and selected all objects (made 'em pink) and then updated the attribute again and it worked for the entire document! Louie, is this what you were speaking of or did i discover something different? I'm curious about your solution and would like to learn more. thanks, John |
Re: Remove Carriage Returns from an Attribute DXL |