ChrisRChamberlain
Programmer
Do you ever need to express the size of a file in KB as opposed to bytes?
If so, see faq184-3055![[pc2] [pc2] [pc2]](/data/assets/smilies/pc2.gif)
If so, see faq184-3055
FAQ184-2483 - the answer to getting answered.
Chris ![[pc2] [pc2] [pc2]](/data/assets/smilies/pc2.gif)
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
FUNCTION Bytes2KB
LPARAMETERS nValue
lnKB = (nValue/1.024) / 1000
IF lnKB > 999.99
RETURN TRANSFORM(CEILING(lnKB/1.024/1000),[999,999])+[MB]
ELSE
RETURN TRANSFORM(CEILING(nValue/1.024/1000),[999,999])+[KB]
ENDI