Results 1 to 3 of 3

Thread: find out how many file-records

  1. #1
    Guest
    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.

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    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
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    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.

    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width