0
0

More than 3 years have passed since last update.

【メモ】

Posted at

Private 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
Private 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

Sub GetValue()

Dim section As String
Dim fileName As String

section = "CellColor"
fileName = "C:\Users\s.kawano\Documents\conf.ini"

Call WritePrivateProfileString(section, "R", "255", fileName)
Call WritePrivateProfileString(section, "G", "20", fileName)
Call WritePrivateProfileString(section, "B", "147", fileName)

End Sub

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0