2 Replies Latest reply on May 2, 2010 7:24 PM by cheftimo

    Flex 4 - Displaying first n characters of a text block

    cheftimo Level 2

      I have a dataset one of whose fields is a product description – it can be up to 800-900 characters long. I need to display only the first, say 200 characters. Example:

       

      The complete field is

       

      Natural Appetite Control (Stimulant Free) 90 softgels Item Catalog Number: 00891 A study published in the Journal of the American Medical Association found that overweight adults who followed a program of modest caloric restriction achieved significant reductions in body fat mass

       

      I want to display

       

      Natural Appetite Control (Stimulant Free) 90 softgels Item Catalog Number: 00891 A study published in the Journal of the American Medical Association found that overweight adults

       

      I am using a <s:TextArea>.

       

      Any ideas about how this is done would be greatly appreciated.

       

      Carlos