Splizes Grandmaster Cheater Supreme
Reputation: 0
Joined: 21 Jun 2006 Posts: 1944 Location: Florida
|
Posted: Thu Nov 08, 2007 6:00 pm Post subject: [VB6] INI module |
|
|
I wrote the ini module for my monkeystoryhelper 3.0
It has the following abilities:
CreateIni: This will create an ini file
Format
| Code: | | 'CreateIni Name of ini file, location, Use app path, Use confirmation |
Example:
| Code: | 'CreateIni "Settings", vbNullString, True, False
'This will make Settings.ini in your apps location without a confirmation
'CreateIni "Settings", "C:\", False, True
'This will make Settings.ini in C:\ folder with a confirmation |
WriteX: This will allow you to write up to 5 keys(and values at once)
Format:
| Code: | | WriteX path, section, key, value, use app path, name if in apppath, key2, value2, key3, value3, key4, value4, key5, value 5 |
| Code: | | WriteX vbNullString, "Settings", "Password", "Flowers", True, "Settings", "Path", "C:\Hi" |
Check: checks to see if the ini exists
Format:
| Code: | | Check Path, use app path, if use app path filename |
Example:
| Code: | | msgbox Check C:\test.ini, false, vbnullstring | would return true or false if test.ini exists in C:\
ReadiniX: Reads from ini a specific keys value
format:
| Code: | | msgbox ReadiniX( Path, section, key, use app path, filename in app path) |
Example:
| Code: | Pass = ReadIniX(vbNullString, "Settings", "Password", True, "Settings")
Would read the value from password in the settings section from the Settings.ini in my programs app path
|
DeleteIni: Delete an ini file
Format:
| Code: | | Deleteini Path, useapp path, filename in app path |
Example:
| Code: | | Deleteini vbnullstring, true, "Settings" |
Module attached
|
|