Starter - File size calculator

myblueocean

Well-known member
Joined
Jun 29, 2007
Messages
161
Location
England
Programming Experience
Beginner
:rolleyes:Can someone start me out for example, I want to know how many bits are there in a byte.

So you'd type in 100000 bits make whatever bytes. Now, with the computer. It doesn't know 000, it has to be 1024...
 
There's 8 bits in a byte and 1024 bytes in the kilobyte and 1024 kilobytes in a megabyte so on and so forth

This doesn't calculate bits, but it handles everything else
 
Do I just copy that into a new project in 'CA'?

Btw, you made that game in VB?Nibblies haha.
 
Download the text file and rename it to end with .vb instead of .txt then simply add the .vb file to your project then declare a variable as a new instance of FileSizeConv then use the .CalcSize() sub to have it calculate the file size's then use the property for whatever you want shown to the user.

You can also feel free to modify it however you see fit, all of the math has already been done for ya.

And yes, I made Nibblets in VB.Net 2003. Whenever I get the time I'll re-make it in VB 2005 using 100% GDI instead of using pictureboxes displaying pre-set images like I did in VB 2003.
 
Back
Top