Divide by 1048576 which is 1024 * 1024 and then
FormatNumber(YourSizeVariable,2)
And this will give you 1.42M in your example.


-----Original Message-----
From: jake williamson [mailto:jake.williamson@;28design.com]
Sent: Wednesday, November 06, 2002 12:09 PM
To: ActiveServerPages
Subject: showing file size in meg


hello!

got this real cool file system thing building at the moment for our
clients to log in and download pdf proofs.

it's a real small cosmetic thing but i'd like to show the size in
'finder' style. at the moment my code:

<% = objFile.Size %>



---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to