View Single Post
  #11  
Old 10-21-2006, 08:17 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Quote:
Originally Posted by Rapidwolve View Post
Here is the problem with substring.

PHP Code:
echo(temp.list.getdynamicvarnames("item_").substring(5,-1)); 
Echos 372,item_402

It only takes away the first five letters for the first string, and leaves the rest as it is
Ah yes
simple:
HTML Code:
for (temp.reMake: temp.list.getdynamicvarnames("item_"))
{
  temp.newItems @= temp.reMake.substring(5);
}
message(temp.newItems);
Should work
__________________
Reply With Quote