[thelist] For the ASP Gurus...
Marc Seyon
seyon at delime.com
Sun Dec 9 08:10:43 CST 2001
Hi Ken,
At 12/9/2001 02:05 AM, you wrote:
>This all executes within global.asa:
>
>Here's my global.asa:
>
>-----------------------------------------------------------
>Sub Session_OnStart
>
> Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
> Set objFolder = objFSO.GetFolder(server.mappath("/images/headers/"))
>
> For Each objFile in objFolder.Files
> upperbound = objFile.name
> Next
Correct me if I'm wrong. This bit here doesn't seem to put the retrieved
filenames into an array. It just overwrites the variable with the new file
each time.
So....
> upperbound = split(upperbound,".")
When you get to here, there's only one file on your upperbound variable.
Therefore no matter what you do afterwards, that's the file that will be
displayed.
At least that's how it looks to me.
regards.
-marc
More information about the thelist
mailing list