ID:176737
 
How would i make say list1 contain all the stuff that list2 contains without make like list1+=list2/obj or somthing like that, i want all from one to the other in one line if posible. Anyone know?
Scoobert wrote:
How would i make say list1 contain all the stuff that list2 contains without make like list1+=list2/obj or somthing like that, i want all from one to the other in one line if posible. Anyone know?

var/list/list1 = list2
var/list/list2 = list("1","2")

makes list1 stay exactly the same as list2.
hope it's what u asked for.

--HILEL
In response to Hilel
that was what i was asking for, but i had already tryed that, must be another problem.
In response to Scoobert
::cough:: list.Copy()...
In response to Nadrew
oh, good idea
[edit]
Ok when its copyed, how do i paist it? I looked it up in the f1 menu, and it didnt give any hints on what to do with what is copyed, and oh ya,I looked up cut, it said
"Cut proc (list)
See also:
Cut proc (list)"

see the funny? It should say copy i guess
In response to Scoobert
It returns a list of the new things that have been copied. Thus:

list2 = list1.Copy(1,2)
In response to Garthor
thanks, works like a dream.