Hello Everyone, I'm trying to count the number of files that are attached and get that number in a variable called countFiles
Set Upload = New FreeASPUpload
Attachment = Upload.Form("attach1")
'Upload.OverwriteFiles = False 'makes sure the attachments have unique names, my code does that already by adding the ProposalId
dim nameofFile, countFiles
countFiles = 0
nameofFile = Upload.Form("attach1")
if (nameofFile <> "") then
countFiles = countFiles + 1
But this code doesn't work...
Can you help? My idea is that each time the variable nameofFile has something in it, countFiles should get one added to it....