Link to home
Start Free TrialLog in
Avatar of Sam Cohen
Sam CohenFlag for United States of America

asked on

LoadVArs with paragraph Preview

I am loading text using LoadVars

I have the text paragraph loaded in textbox1 sucessfully,
But how do i load a preview of the text thats in textbox1, in textbox2?
just maybe around 30 words followed by "..."


Example:

in Textbox1 shows:
The cat jump over the fence. Today was a good day. Blah blah Blah. Shame on You HA HA.

in Textbox2 i want to show this:
The cat jump over the fence. Today was a good...

How can this be done?




ASKER CERTIFIED SOLUTION
Avatar of Proactivation
Proactivation
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I've set the cut-off point at 10 words, based on the number of spaces between them, but you can change the word-count in the splice method, and extend it to split at commas and so on if you like.