Bug in DeleteSetting function 
Author Message
 Bug in DeleteSetting function

Why does the following code not work??

This is in VB4 16 bit.

' Place some settings in an ini file
SaveSetting appname:="c:\MyApp.ini", section:="Startup", _
            Key:="Top", setting:=75
SaveSetting "c:\MyApp.ini", "Startup", "Left", 50

' Remove section and all its settings from the ini file
DeleteSetting "c:\MyApp.ini", "Startup"

The SaveSetting works fine when specifying a full path "c:\myapp.ini"
but the same parameter in the DeleteSetting will not take a drive and path.
The only thing I have found that does work is to not specify a path and
it defaults to the window directory or to do something like "..\myapp"
and it will find it in the root of c: drive.  

I would like to specify another drive letter.

Sun, 06 Jun 1999 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Invalid procedure Call when using Access95 DeleteSetting

2. DeleteSetting Question

3. deletesetting

4. DeleteSetting help for newbie

5. DeleteSetting...What am I doing wrong?

6. DeleteSetting

7. deleteSetting gives error in vb4/16

8. DeleteSetting in vb4/16 Syntax Error

9. Help Using Deletesetting with my own Ini files

10. DeleteSetting: Does this work in VB?

11. DeleteSetting Woes (VB4)

12. SaveSetting and DeleteSetting calls


Powered by phpBB® Forum Software