Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: newbie: stripping character sets out of strings?
From: Phillip Kerman
Date: Sat, 23 Dec 2000 18:25:05 GMT

While I like Muzak's solution better, here's a script that strips returns
off the end of a string:

Loop through all the items in your external file,
set "thisQuote" equal to each variable (one at a time),
then after this while loop, reset the variable to the new value of
thisQuote.


while ( thisQuote.charCodeAt( thisQuote.length-1 )==10 ) {
thisQuote=thisQuote.substr( 0, thisQuote.length-2);
}




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: newbie: stripping character sets , jmerrill

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]