Results 1 to 3 of 3

Thread: DeletePrivateProfileString??

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    4
    Hi all,
    In an .ini file I have several keys and corresponding values. I want to know if there is a way to delete a key and its value. I have figured out how to create the file and the keys but when my form changes it can have some unnecessary key left that I no longer need.

    Steve

  2. #2
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    617

    ...

    U could proably use the WriteProfileString fucntion
    to nil out values under some sections

    so, if u do not want to use a section... instead of deleting
    it, set it to nil

    Would that be a compromise

    There may e but I don't know of a delete profile string function

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    4
    I have figured it out. Lafor you were right.
    here is a sample:
    WritePrivateProfileString(lpAppName, 0&, 0&, lpFileName)
    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width