View Single Post
  #11  
Old 10-17-2009, 12:58 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Kinda but not really.

This might help.

Instead of:
PHP Code:
temp.obj.name[0] = "bob";
temp.obj.name[1] = "eddy";
temp.obj.name[2] = "joe";
temp.obj.age[0] = "22";
temp.obj.age[1] = "23";
temp.obj.age[2] = "24"
I could use:
PHP Code:
withtemp.obj[i] ) {
this.name "name";
this.age "age";

I could then use my second example in a loop to assign each persons data in a much more easy to use manor. Because then all I would have to do to copy the data is copy what ever is at temp.obj[i].

As for the easily copy of the data I can worry about a function to do that if needed. But, do you see what I am saying?
Reply With Quote