VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

clsINI.cls

Bryan Johns  (2 Submissions)   Miscellaneous   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

Lately I've seen some posts for editing ini files that involve opening the ini file directly as a text file, looping line by line thru the file until locating the line desired and then altering that line. There is a much easier and more reliable way using the Windows API. This class module makes that easy. It also shows the proper way to handle errors that happen in a class module by raising custom error codes to be handled by the application that using using the class.

Inputs
See the comments in the code.

Assumes
It assumes a basic familiarity with how to use class modules.

Returns
See the comments in the code.

Rate clsINI.cls (9(9 Vote))
clsINI.cls.bas

clsINI.cls Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters