VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Advanced INI Functions

David Peace  (5 Submissions)   String Manipulation   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This code is the first posted on vbcoders to do more than just ADD and GET INFO from INI files. You can now also DELETE Keys, Values, EVEN SECTIONS. I am working to create functions to rename sections and keys also. Enjoy this code! Fully explained!

API Declarations
Option Explicit
Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
Declare Function WritePrivateProfileString& Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal AppName$, ByVal KeyName$, ByVal keydefault$, ByVal FileName$)

Rate Advanced INI Functions (8(8 Vote))
Advanced INI Functions.bas

Advanced INI Functions Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters