Hi Guys,
In VB 4.0, how do I find out how many records there are in a file(type random)?
Some hep would be appreciated.
Printable View
Hi Guys,
In VB 4.0, how do I find out how many records there are in a file(type random)?
Some hep would be appreciated.
Can't remember exactly, but off the top I think that if you look up the LOF Function, it is the one that will give
you the recordcount
Ok. If I read this right here's how it works.
x = lof(file)/lenb(record)
in random access, records are stored as equal byte size chunks so the length of the file divided by the length of a record will give you how many are in the file.