|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Deleting INI file entryI'm using GetPrivateProfileString and WritePrivateProfileString for IO to an
INI file. How does one delete an trying within an INI file? Thanks, Adam "Adam Honek" <AdamHo***@Webmaster2001.freeserve.co.uk> wrote in message Not sure you can. Just set it to "" or ignore it.news:%230SPMXpXGHA.508@TK2MSFTNGP02.phx.gbl... > I'm using GetPrivateProfileString and WritePrivateProfileString for IO to > an INI file. > > How does one delete any thing within an INI file? You can overwrite the settings.
http://www.codeguru.com/forum/archive/index.php/t-189920.html
--
Show quote
Hide quote
Get a powerful web, database, application, and email hosting with KJM Solutions http://www.kjmsolutions.com "Adam Honek" <AdamHo***@Webmaster2001.freeserve.co.uk> wrote in message
news:%230SPMXpXGHA.508@TK2MSFTNGP02.phx.gbl... > I'm using GetPrivateProfileString and WritePrivateProfileString for IO to > an INI file. > > How does one delete an trying within an INI file? > > Thanks, > Adam > Adam...
If you want to delete a single key from an ini file you use WritePrivateProfileString like this: WritePrivateProfileString ("section name", "key name", Nothing, "file name") If you want to delete a whole section: WritePrivateProfileString ("section name", Nothing, Nothing, "file name") HTH, Tom Shelton [MVP] Here's an INI module that I have always used. The creator explains what the
code does too: http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=F5739733-A34D-4AFD-8363-5F958B73BDDD Happy to help Thanks all, I'll try it all out tonight and see how it unfolds in a code
sense. Adam Show quoteHide quote "Jonny" <jo***@beagood.sod> wrote in message news:eG2Ovo0XGHA.508@TK2MSFTNGP02.phx.gbl... > Here's an INI module that I have always used. The creator explains what > the > code does too: > > http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=F5739733-A34D-4AFD-8363-5F958B73BDDD > > Happy to help > >
Why does Replace return Nothing???
VC6 ATL DLL interop with VB.NET All the king's horses and all the king's men....... How do I determine if a control has a specific property i need timer interval more than 1 Minute. Class Inheritance Should I use XML as a database for a standalone app? Mail attachment from memory Determine if a File exists string value to new form instance? |
|||||||||||||||||||||||