EddieVenus
Technical User
i am displaying a file size, but it is displayed in bytes, and i would like to display it in MB, since they are all .avi files, and larger than 1MB. Is this doable? what about KB, is that possible too? I have this code
------------------------------------------------------
response.write "<table border=""1"" cellpadding=""5"">"
For Each f1 in objFC
if instr(ucase(f1.Name), ".AVI"
then
encdname = server.URLEncode(f1.name)
urlname = Replace(encdname, "+", "%20"
response.write "<tr><td>" & "<a href=" & ojbFV & urlname & ">" & f1.name & "</a>" & "</td><td>" & f1.DateCreated & _
"</td><td>" & f1.Size & "</td><td>"
response.write "</tr>"
end if
Next
response.write "</table>"
------------------------------------------------------
and just want to know if fl.size can be represented in MB or in KB instead of just bytes. Thank you.
------------------------------------------------------
response.write "<table border=""1"" cellpadding=""5"">"
For Each f1 in objFC
if instr(ucase(f1.Name), ".AVI"
encdname = server.URLEncode(f1.name)
urlname = Replace(encdname, "+", "%20"
response.write "<tr><td>" & "<a href=" & ojbFV & urlname & ">" & f1.name & "</a>" & "</td><td>" & f1.DateCreated & _
"</td><td>" & f1.Size & "</td><td>"
response.write "</tr>"
end if
Next
response.write "</table>"
------------------------------------------------------
and just want to know if fl.size can be represented in MB or in KB instead of just bytes. Thank you.