Page 1 of 1 1
Topic Options
#124936 - 2004-08-13 05:10 PM Deleting key in INI file
operez Offline
Getting the hang of it

Registered: 2003-08-08
Posts: 75
It’s all in the way you ask the question, - when you use a search engine – and I must not be asking correctly.

I need to locate a section within an INI file and delete all keys that follow, until the next section.

WriteProfileString will allow me to set the key’s value to blank, but I need to delete the key altogether.

Can someone help?

Top
#124937 - 2004-08-13 05:11 PM Re: Deleting key in INI file
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Setting it to blank will delete the key.
Top
#124938 - 2004-08-13 05:35 PM Re: Deleting key in INI file
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
No need for a search engine when it is explained in the manual.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#124939 - 2004-08-13 05:59 PM Re: Deleting key in INI file
operez Offline
Getting the hang of it

Registered: 2003-08-08
Posts: 75
There it was in black and white. That’ll teach me to READ and not just glimpse over the documentation. Sorry to have wasted you time and Thanks.
Top
#124940 - 2004-08-13 07:04 PM Re: Deleting key in INI file
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
no such thing as a bad question!!
Top
#124941 - 2004-08-13 08:08 PM Re: Deleting key in INI file
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
but so is the answer similar that the question asked...
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.148 seconds in which 0.086 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org