How can I create a local object array?
I thought of entering "localobj ref[4]" in a procedure but that didn't work.
Outside a procedure, I can successfully create an object array using "objref ref[4]".
Thanks,
Pierre
localobj array
Re: localobj array
Solved by making "localobj ref" and connecting to a List:
ref = new List()
for i=0,3 ref.append(new Vector())
ref = new List()
for i=0,3 ref.append(new Vector())
-
- Site Admin
- Posts: 6303
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: localobj array
Good solution. Another possibility, assuming that all vectors are of the same size and you know how many you need to deal with, is to use the Matrix class's setcol() or setrow() method. Which one you choose depends on what you intend to do with all those numbers.