jazzIIIlove
asked on
round is not working for Cstr in VBS
Hi;
Following vbs snippet is not working which I want to round a file size:
whereas this is working which is not rounded:
And I want to round the value. What to do?
Regards.
Following vbs snippet is not working which I want to round a file size:
strWrite.WriteLine(oF.Name + "," + CStr(Round(oF.Size/1048576),2) + "," + CStr(oF.Files.Count) + "," + CStr(oF.Subfolders.Count))
whereas this is working which is not rounded:
strWrite.WriteLine(oF.Name + "," + CStr(oF.Size/1048576) + "," + CStr(oF.Files.Count) + "," + CStr(oF.Subfolders.Count))
And I want to round the value. What to do?
Regards.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
First one failed, second one worked
Open in new window