T
tma
I'm trying to save code to a session object like the following:
dim oAppList as arraylist
dim oApp as someclass
Code to manipulate oApp...
....
....
oApplist.Add(oApp)
session.add("AppList", oApplist)
More code to make changes to oApp...
....
....
oApplist.add(oApp) 'new version with changes
session.add("AppList", oApplist) 'save new arraylist in session state
In the final processing, I do the following:
oApplist = session("AppList")
for each oApp in oApplist
.....
next oApp
My problem comes in when I try to iterate through the array list. All the
items (oApp) in the array have the properties of the last item I added to
the array list. I cannot seem to figure where I'm going wrong.
dim oAppList as arraylist
dim oApp as someclass
Code to manipulate oApp...
....
....
oApplist.Add(oApp)
session.add("AppList", oApplist)
More code to make changes to oApp...
....
....
oApplist.add(oApp) 'new version with changes
session.add("AppList", oApplist) 'save new arraylist in session state
In the final processing, I do the following:
oApplist = session("AppList")
for each oApp in oApplist
.....
next oApp
My problem comes in when I try to iterate through the array list. All the
items (oApp) in the array have the properties of the last item I added to
the array list. I cannot seem to figure where I'm going wrong.