VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Arrays and Binary File Access Version 2

Jim Hunt  (3 Submissions)   Data Structures   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

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 (7(7 Vote))

Download Arrays and Binary File Access Version 2

Arrays and Binary File Access Version 2 Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters