S
Steven Burn
Anyone able to tell me if there's an alternative to the Format function that
VB has? (it appears ASP doesn't support it)
I'm basically (and believe me, I know how stupid this is going to sound)
trying to find a way of getting a file/folder's size to show in something
other than bytes (i.e. KB or MB, depending on what size it is).
I've tried modifying some of my VB functions to ASP compatable, but it
doesn't seem to like them.
E.G. in VB, I use;
something = Format((Fldr.Size / 1024), "#0.00") & " KB"
or
Format((Fldr.Size / 1024) / 1024, "##0.00") & " MB"
Neither of the above seem to work as below;
Response.Write Format((Fldr.Size / 1024) / 1024, "##0.00") & " MB"
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)
VB has? (it appears ASP doesn't support it)
I'm basically (and believe me, I know how stupid this is going to sound)
trying to find a way of getting a file/folder's size to show in something
other than bytes (i.e. KB or MB, depending on what size it is).
I've tried modifying some of my VB functions to ASP compatable, but it
doesn't seem to like them.
E.G. in VB, I use;
something = Format((Fldr.Size / 1024), "#0.00") & " KB"
or
Format((Fldr.Size / 1024) / 1024, "##0.00") & " MB"
Neither of the above seem to work as below;
Response.Write Format((Fldr.Size / 1024) / 1024, "##0.00") & " MB"
--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk
Keeping it FREE!
Disclaimer:
I know I'm probably wrong, I just like taking part ;o)