VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Arrays and Binary File Access Version 2

by Jim Hunt (3 Submissions)
Category: Data Structures
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

This project demonstrates how to use a dynamic array to interact with database records and settings stored in a single binary file. The example stores custom settings and the record count at the beginning of the binary file, then stores multiple database records. To retrieve the data, it gets the settings and record count, then loads the records into a dynamic array which can be interacted with on the form, much like a true database record. If that's not enough, then how about the ability to embed images directly into records!

Assumes
This code was created with VB6 SP5.
Side Effects
Larger images will (of course) take longer to load and save.
API Declarations
Several User-Defined Types, GetPixel, SetPixel, VarPtrArray, CopyMemory, GetObjectAPI

Rate Arrays and Binary File Access Version 2

Download Arrays and Binary File Access Version 2

Download Arrays and Binary File Access Version 2 (38 KB)

Arrays and Binary File Access Version 2 Comments

No comments have been posted about Arrays and Binary File Access Version 2. Why not be the first to post a comment about Arrays and Binary File Access Version 2.

Post your comment

Subject:
Message:
0/1000 characters