That would be interesting code if u could :D
Imagine debugging that :D
"Morten Wennevik" <Mo************@hotmail.com> wrote in message
news:oprxjm59kphntkfz@localhost...
On Fri, 24 Oct 2003 11:37:13 +0300, Sorin Sandu <ss****@bizland.ro> wrote:
How can I declare a new object with a variable name ?
I'm trying to add many objects with s for each loop
for ....
Object varname = new Object() ......
You don't need a new name for each object. If you store the objects in an
array they will each get a "name" as ArrayList[x].
If you need to add your own name, one way could be to create a new struct
having a name and an object.
--
Using M2, Opera's revolutionary e-mail client:
http://www.opera.com/m2/