VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

How To Write To a INI File

Randy Porosky  (6 Submissions)   Files/File Controls/Input/Output   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This VERY Simple 5 Line Code Writes To a INI File! Enjoy!

Assumes
Place a Command Button on The Form, Name it Command1. Put The 1 Declaration in a Module. Have Fun!

API Declarations
Declare Function WritePrivateProfileString Lib "kernel32" _
Alias "WritePrivateProfileStringA" (ByVal lpApplicationName _
As String, ByVal lpKeyName As Any, ByVal lpString As Any, _
ByVal lpFileName As String) As Long

Rate How To Write To a INI File (2(2 Vote))
How To Write To a INI File.bas

How To Write To a INI File Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters