December 21, 201312 yr Hi Everybody, I have a text field with a text that contains normal and red-bold characters, I would like to count the number of characters with bold style. Could anyone help me to do this operation with a function? I am trying to do an script that extracts the portion of normal text to calculate the length and then calculate the number of total characters minus normal text. What is the best option? a function or an script? Thank you very much, Wardiam
December 21, 201312 yr This custom function from Daniele Raybaudi should get you started on a script. After using it, you can filter out the returns and use the Length() function.
December 21, 201312 yr What is the best option? a function or an script? Actually, the best option would be not to find yourself in this situation. Data should be stored in fields directly - not encoded in text styling.
December 21, 201312 yr Author Thanks doughemi, It is exactly that I need. Perfect!! Thank you very much, Wardiam
February 2, 201411 yr Actually, the best option would be not to find yourself in this situation. Data should be stored in fields directly - not encoded in text styling. Sorry, I have to reply to this inappropriate response. Just because YOU don't have a need for normalizing text in a field doesn't mean someone else does'nt. And yes HE IS trying to force the data associated with the bolded and colored text to be represented seperately with the mentioned custom function. Just think about it before you suggest someone is performing what you consider unneccessary work. TIA.
February 2, 201411 yr I have to reply No, you don't. Really. Trust me on that. It serves no purpose whatsoever. Totally unnecessary work on your part.
Create an account or sign in to comment