First thing, "" is an empty string, and that is not equal to null
and as a solution to your problem, you may try like this. Find out all the indexes of all " "(SPACE)s in the actual string that are greater/less(your choice) than 50. And break the string at an index that is nearest to 50. Good Luck Bobbyinsane http://www.insanepixel.com On Nov 10, 11:18 am, athi <[email protected]> wrote: > hi > i am working in flex 4. > > i have one string variable name is str="we found six to thirteen years > old self instruct in the connector in the violament " > if the str.length<50 > i don't want to disturb the str variable. > > But > if the str.length >50 then > i want to split the str into store two string variables for the > following > > fline="we found six to thirteen years old self instruct in the"; > sline="connector in the violament " > Spliting is based on " " null charcter. > > how i split programatically. > > regards > athi -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

