### replace object in list

Posted:

**Wed Dec 05, 2018 12:46 pm**For:

objref alist

alist=new List()

alist.append(new Vector())

alist.o(0) = new Vector() // Does not work !!!

My real task is to make several conversions of the vector using several obfunc created

1. put vector in alist

2. alist.o(0) = returnvectorconversion1(alist.o(0))

3. alist.o(0) = returnvectorconversion2(alist.o(0))

But this does not work.

Of course, I could

1. put vector in objref vbuffer

2. vbuffer = returnconversion1(vbuffer)

3. vbuffer = returnconversion2(vbuffer)

4. alist.append(vbuffer)

Thanks,

Pierre

objref alist

alist=new List()

alist.append(new Vector())

alist.o(0) = new Vector() // Does not work !!!

My real task is to make several conversions of the vector using several obfunc created

1. put vector in alist

2. alist.o(0) = returnvectorconversion1(alist.o(0))

3. alist.o(0) = returnvectorconversion2(alist.o(0))

But this does not work.

Of course, I could

1. put vector in objref vbuffer

2. vbuffer = returnconversion1(vbuffer)

3. vbuffer = returnconversion2(vbuffer)

4. alist.append(vbuffer)

Thanks,

Pierre