View Single Post
  #28  
Old 05-30-2007, 08:12 AM
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
HTML Code:
  //Loading all the possible var names...
  vars = file.getVarNames(); 
  //However, you're only wanting to remove this
  vars.remove("mudid"); 
  //Shouldn't it be
  vars.remove(this.muditems[0].mudid);
Looking more into it

HTML Code:
  //You're removing vars, then you're trying to assign a new var...
  vars.remove("mudid"); 
  vars.remove("mudtype"); 
  for (i = 0; i < vars.size(); i ++) { 
    this.(@ vars[i]) = file.(@ vars[i]); 
  }
Use this loop

HTML Code:
  for (temp.currentVar: vars) {
    this.(@ temp.currentVar) = makevar(file.( @ temp.currentVar));
  }
If all else fails, make sure your way of setting the ''new vars'' actually works, try echoing the vars after you've added them. [Don't do the file. stuff, make it all one string being "hello"]

HTML Code:
  for (temp.currentVar: vars) {
    this.(@ temp.currentVar) = randomstring("hello", "hi", "yo");
  }
  echo(this.getVarNames());
__________________
Reply With Quote