|
-
Dec 28th, 2006, 11:02 PM
#1
Thread Starter
Hyperactive Member
-
Dec 28th, 2006, 11:10 PM
#2
Re: Weird INI File Error
Post this module "WriteToINI "
Please mark you thread resolved using the Thread Tools as shown
-
Dec 28th, 2006, 11:28 PM
#3
Thread Starter
Hyperactive Member
Re: Weird INI File Error
Here it is,
VB Code:
Public Sub WriteToINI(strSectionName As String, strKeyName As String, strValue As String, strFileName As String)
Dim WriteToIniResult As Long
On Error GoTo ErrHandler
WriteToIniResult = WritePrivateProfileString(strSectionName, strKeyName, strValue, strFileName)
Exit Sub
ErrHandler:
Debug.Print Err.Description
Err.Clear
Resume Next
End Sub
I am off to sleep now, but I will reply tomorrow morning... about 12 hrs later
Hey... If you found this post helpful please rate it.

-
Dec 28th, 2006, 11:30 PM
#4
Re: Weird INI File Error
Try this
VB Code:
WriteToINI "CLICKWHEEL", "Sensitivity",[B] "intSensitivity", "strINILoc"[/B]
Please mark you thread resolved using the Thread Tools as shown
-
Dec 28th, 2006, 11:32 PM
#5
Thread Starter
Hyperactive Member
Re: Weird INI File Error
Oops... no that doesn't work... I changed my reply... the second time I tried... it actually wrote down the variable name...
Umm... intSensitivity is a variable... and strINILoc is a string variable that stores the location of the file... There is nothing wrong with strINILoc... there is something wrong with intSensitivity
Hey... If you found this post helpful please rate it.

-
Dec 28th, 2006, 11:38 PM
#6
Re: [RESOLVED] Weird INI File Error
Provided this module
VB Code:
WriteToIniResult = WritePrivateProfileString(strSectionName, strKeyName, strValue, strFileName)
Please mark you thread resolved using the Thread Tools as shown
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|