Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 104
Default Deleting an entry from a ini file

Hi I am using an ini file to store setup properties for a form, this so that
different users get different buttons etc ...
What I need to do is remove a user if they don't need to use it.
TIA
Charles
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default Deleting an entry from a ini file

Just use the same APIs for writing to the ini file, passing 0& for the
value:

'Delete a property
WritePrivateProfileString SECTION_NAME, PROPERTY_NAME, 0&, INI_FILENAME
'Delete a section
WritePrivateProfileString SECTION_NAME, 0&, 0&, INI_FILENAME

HTH,
Gareth

vqthomf wrote:
Hi I am using an ini file to store setup properties for a form, this so that
different users get different buttons etc ...
What I need to do is remove a user if they don't need to use it.
TIA
Charles

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting an unwanted AutoComplete entry Arlene Excel Discussion (Misc queries) 6 November 7th 06 04:23 AM
deleting a file Abhishek kedia Excel Discussion (Misc queries) 1 April 22nd 06 02:49 PM
merging cells and then deleting rows and duplicate entry [email protected] Excel Programming 3 April 30th 05 05:55 PM
deleting file(s) by their file extension jt46[_4_] Excel Programming 3 October 13th 04 07:54 PM
Deleting a file using VB Rohit Thomas Excel Programming 3 July 14th 03 09:11 PM


All times are GMT +1. The time now is 09:08 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"