VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

.INI read/write routines

Newsgroup Posting  (15 Submissions)   Files/File Controls/Input/Output   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

.INI read/write routines
mfncGetFromIni-- Reads from an *.INI file strFileName (full path & file name)
mfncWriteIni--Writes to an *.INI file called strFileName (full path & file name)
[email protected]

Returns
mfncGetFromIni--The string stored in [strSectionHeader], line beginning strVariableName mfncWriteIni--Integer indicating failure (0) or success (other) to write

API Declarations
Declare Function GetPrivateProfileString Lib "Kernel" (ByVal
lpApplicationName As String, lpKeyName As Any, ByVal lpDefault As String,
ByVal lpReturnedString As String, ByVal nSize As Integer, ByVal lpFileName
As String) As Integer
Declare Function WritePrivateProfileString% Lib "Kernel" (ByVal
lpApplicationName$, ByVal lpKeyName As Any, ByVal lpString As Any, ByVal
lpFileName$)

Rate .INI read/write routines (8(8 Vote))
.INI read/write routines.bas

.INI read/write routines Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters