Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%
- strValue = RS("ATTACHMENTS")
- strAryWords = Split(strValue, ";")
- ' - strAryWords is now an array
- For i = 0 to Ubound(strAryWords)
- Set fso = Server.CreateObject("Scripting.FileSystemObject")
- Set fileObject = fso.getFile(strAryWords(i))
- Response.Write "<TH><TR align=left><TD>" & strAryWords(i) &" "& fileObject.Size &" "&"<img src=images/up.gif><BR></TD></TR>"
- Set fileObject = Nothing
- Set fso = Nothing
- Next
- %>
- strValue = RS("ATTACHMENTS")
- strAryWords = Split(strValue, ";")
- ' - strAryWords is now an array
- For i = 0 to Ubound(strAryWords)
- If strAryWords(i) <> "" Then
- Set fso = Server.CreateObject("Scripting.FileSystemObject")
- Set fileObject = fso.getFile(strAryWords(i))
- Response.Write "<TH><TR align=left><TD>" & strAryWords(i) &" "& fileObject.Size &" "&"<img src=images/up.gif><BR></TD></TR>"
- Set fileObject = Nothing
- Set fso = Nothing
- End If
- NEXT
Add Comment
Please, Sign In to add comment