First, code gets a list of events for the country or for the region:
Expand|Select|Wrap|Line Numbers
- . . .
- if (request.form("country_sel") < 0) then
- allevents = getEventsByRegion(request.form("reg"),1)
- else
- allevents = getEvents(request.form("country_sel"),1)
- end if
- . . .
Expand|Select|Wrap|Line Numbers
- . . .
- <% for a=0 to ubound(allevents,2)
- evid = allevents(0,a)
- eventinfo = getEventInfo(evid,1)
- if isarray(eventinfo) then
- evtitle = eventinfo(1,0)
- . . .
Event Id:<%=evid%> and Event Title:<%=evititle%>
what I get is
Event Id:1 Event Title:first event
Event Id:2 Event Title:first event
Event Id:3 Event Title:first event
. . .
It is like the code is preserving the array "eventinfo" in spite of the call to the function.
What gives? Explain please!