Click to See Complete Forum and Search --> : File Manipulation


Lorna
July 16th, 2001, 04:21 AM
Hi

I'm reading a file sequentially and I want to display a ProgressBar while I do some calculations. For a Progress bar to work, I need to have a known Maximum value. Now while reading the file, what can I use as the Max value for the Progressbar if I don't know how many records there are in my file?

Thanks

cksiow
July 16th, 2001, 04:29 AM
FileLen will return the size of file in bytes. to get the no. of record, just divide the file size by record size. to get record size, you can use Len.



HTH

cksiow
http://vblib.virtualave.net - share our codes