[Javascript] Truncate strings

Samyukta Akunuru samyuktaakunuru at yahoo.com
Fri Mar 19 15:10:07 CST 2004


1 is starting letter and 6 is the numbr of characters to include...
Please let me know.  Thanks!

"Roberts, Mark (Tulsa)" <Mark.Roberts at Williams.com> wrote:
One way would be to use

Variable = substr(variable,1,6);


Mark Roberts 
Sr. Systems Analyst 


-----Original Message-----
From: Innerlab [mailto:innerlab at hotmail.com]
Sent: Friday, March 19, 2004 2:08 PM
To: [JavaScript List]
Subject: [Javascript] Truncate strings

How do you truncate a string to a certain number of characters?

Thanks

Ed.
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20040319/0d449e5d/attachment.htm>


More information about the Javascript mailing list