Forum Moderators: open

Message Too Old, No Replies

Help! How do I Trim a string 20 char from the right

         

SimonGill

11:30 pm on Jan 30, 2004 (gmt 0)

10+ Year Member



Help! How do I Trim a string 20 char from the right

Simon

ORBiTrus

3:44 am on Jan 31, 2004 (gmt 0)

10+ Year Member



Google subString.

"
// This takes a substring from the 4th to last character
// in the string until the end. The length property
// returns a number equal to, as its name implies, the length
// of the string.

birthday = demoString.substring(demoString.length - 4);
"

Just use substring(0,...) to get a "[Text tha]t is" instead of "Text tha[t is]"

Oh wait, gotta do my teachers proud! RTFM! (j/k) :p

SimonGill

3:22 pm on Jan 31, 2004 (gmt 0)

10+ Year Member



Hey thanx for the help!

Later Simon