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 DeclarationsSeveral User-Defined Types, GetPixel, SetPixel, VarPtrArray, CopyMemory, GetObjectAPI