We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
substring(-1) (Read 1261 times)
substring(-1)
Apr 25th, 2005, 5:37pm
 
actionscript has a handy syntax for substring()/substr() that allows a negative int to be passed for the beginIndex param.  a negative int will count back from the end instead of forward from the start of the string.  this can currently be done with String.length(), but just a thought...
Page Index Toggle Pages: 1