VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Write a string data to an INI file using WritePrivateProfileString API

by Karthikeyan (187 Submissions)
Category: Windows API Call/Explanation
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Wed 17th January 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Write a string data to an INI file using WritePrivateProfileString API

Rate Write a string data to an INI file using WritePrivateProfileString API



' Set the value India to "country" in the [ReleaseSoft] section of G:\myagent.ini . 
'Also set the value 14 to "zip" under the same section 
Dim retval As Long  ' return value 
' Set the string value. 
retval = WritePrivateProfileString("ReleaseSoft", "country", "India", "G:\myagent.ini") 
' Set the numeric value. 
retval = WritePrivateProfileString("ReleaseSoft", "zip", "14", "G:\myagent.ini") 
End 
End Sub

Download this snippet    Add to My Saved Code

Write a string data to an INI file using WritePrivateProfileString API Comments

No comments have been posted about Write a string data to an INI file using WritePrivateProfileString API. Why not be the first to post a comment about Write a string data to an INI file using WritePrivateProfileString API.

Post your comment

Subject:
Message:
0/1000 characters