DeleteSetting...What am I doing wrong? 
Author Message
 DeleteSetting...What am I doing wrong?

In a app the I am writing I use the following line of code:

   DeleteSetting INIFile, "PlanLocations", tmpName

where
   INIFile="E:\VB16\EBAS\ESOP.ini"
   tmpName="CPI QUALIFIED PLAN CONSULTANTS"

Everywhere that I
   SaveSetting INIFile, "PlanLocations", tmpName

it works fine.  But everytime I try to use the DeleteSetting, I get an
"Invalid Proceedure call".  NOTHING that I've tried will get it to work.
HELP!!!!!!!!!!!!!!

Thanks in advance.



Sun, 10 Oct 1999 03:00:00 GMT  
 DeleteSetting...What am I doing wrong?

Quote:

> In a app the I am writing I use the following line of code:

>    DeleteSetting INIFile, "PlanLocations", tmpName

> where
>    INIFile="E:\VB16\EBAS\ESOP.ini"
>    tmpName="CPI QUALIFIED PLAN CONSULTANTS"

> Everywhere that I
>    SaveSetting INIFile, "PlanLocations", tmpName

> it works fine.  But everytime I try to use the DeleteSetting, I get an
> "Invalid Proceedure call".  NOTHING that I've tried will get it to work.
> HELP!!!!!!!!!!!!!!

> Thanks in advance.

Do you have the section "[CPI QUALIFIED PLAN CONSULTANTS]" in your INI
file?

        - Chris Kyarsgaard

--
+----------------------------------------------------------------+
| Geronimo Development Corporation   Phone: (800) 457-6045       |
|   606 25th Ave. S., Suite 206       Fax: (320) 259-9808        |
|       St. Cloud, MN 56301       WWW: http://www.casefinder.com |
+----------------------------------------------------------------+



Mon, 11 Oct 1999 03:00:00 GMT  
 DeleteSetting...What am I doing wrong?

I beleive the third argument is causing the problem...

Try:  DeleteSetting INIFile, "PlanLocations"

Quote:

> More Info:  I'm using VB4-16 for this project. The File, Section, and Key
> are present (writing with SaveSetting earlier in program).  The Key is
> actually "CPI Qualified Plan Consultants", tmpName was being UCASEd, but I
> changed that and it still doesn't work.




> > > In a app the I am writing I use the following line of code:

> > >    DeleteSetting INIFile, "PlanLocations", tmpName

> > > where
> > >    INIFile="E:\VB16\EBAS\ESOP.ini"
> > >    tmpName="CPI QUALIFIED PLAN CONSULTANTS"

> > > Everywhere that I
> > >    SaveSetting INIFile, "PlanLocations", tmpName

> > > it works fine.  But everytime I try to use the DeleteSetting, I get an
> > > "Invalid Proceedure call".  NOTHING that I've tried will get it to
> work.
> > > HELP!!!!!!!!!!!!!!

> > > Thanks in advance.

> > Do you have the section "[CPI QUALIFIED PLAN CONSULTANTS]" in your INI
> > file?

> >       - Chris Kyarsgaard

> > --
> > +----------------------------------------------------------------+
> > | Geronimo Development Corporation   Phone: (800) 457-6045       |
> > |   606 25th Ave. S., Suite 206       Fax: (320) 259-9808        |
> > |       St. Cloud, MN 56301       WWW: http://www.casefinder.com |
> > +----------------------------------------------------------------+



Tue, 12 Oct 1999 03:00:00 GMT  
 DeleteSetting...What am I doing wrong?

I belive the third argument is causing the problem...

        DeleteSetting INIFile, "PlanLocations", tmpName

Try:  DeleteSetting INIFile, "PlanLocations"

Quote:

> More Info:  I'm using VB4-16 for this project. The File, Section, and Key
> are present (writing with SaveSetting earlier in program).  The Key is
> actually "CPI Qualified Plan Consultants", tmpName was being UCASEd, but I
> changed that and it still doesn't work.




> > > In a app the I am writing I use the following line of code:

> > >    DeleteSetting INIFile, "PlanLocations", tmpName

> > > where
> > >    INIFile="E:\VB16\EBAS\ESOP.ini"
> > >    tmpName="CPI QUALIFIED PLAN CONSULTANTS"

> > > Everywhere that I
> > >    SaveSetting INIFile, "PlanLocations", tmpName

> > > it works fine.  But everytime I try to use the DeleteSetting, I get an
> > > "Invalid Proceedure call".  NOTHING that I've tried will get it to
> work.
> > > HELP!!!!!!!!!!!!!!

> > > Thanks in advance.

> > Do you have the section "[CPI QUALIFIED PLAN CONSULTANTS]" in your INI
> > file?

> >       - Chris Kyarsgaard

> > --
> > +----------------------------------------------------------------+
> > | Geronimo Development Corporation   Phone: (800) 457-6045       |
> > |   606 25th Ave. S., Suite 206       Fax: (320) 259-9808        |
> > |       St. Cloud, MN 56301       WWW: http://www.casefinder.com |
> > +----------------------------------------------------------------+



Tue, 12 Oct 1999 03:00:00 GMT  
 DeleteSetting...What am I doing wrong?

More Info:  I'm using VB4-16 for this project. The File, Section, and Key
are present (writing with SaveSetting earlier in program).  The Key is
actually "CPI Qualified Plan Consultants", tmpName was being UCASEd, but I
changed that and it still doesn't work.



Quote:

> > In a app the I am writing I use the following line of code:

> >    DeleteSetting INIFile, "PlanLocations", tmpName

> > where
> >    INIFile="E:\VB16\EBAS\ESOP.ini"
> >    tmpName="CPI QUALIFIED PLAN CONSULTANTS"

> > Everywhere that I
> >    SaveSetting INIFile, "PlanLocations", tmpName

> > it works fine.  But everytime I try to use the DeleteSetting, I get an
> > "Invalid Proceedure call".  NOTHING that I've tried will get it to
work.
> > HELP!!!!!!!!!!!!!!

> > Thanks in advance.

> Do you have the section "[CPI QUALIFIED PLAN CONSULTANTS]" in your INI
> file?

>    - Chris Kyarsgaard

> --
> +----------------------------------------------------------------+
> | Geronimo Development Corporation   Phone: (800) 457-6045       |
> |   606 25th Ave. S., Suite 206       Fax: (320) 259-9808        |
> |       St. Cloud, MN 56301       WWW: http://www.casefinder.com |
> +----------------------------------------------------------------+



Tue, 12 Oct 1999 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Recordset: What am I doing wrong?

2. What am I doing wrong??

3. What am I doing wrong?

4. Help with syntax. What am I doing wrong

5. What am I doing wrong?

6. What am I doing wrong?

7. What am I doing wrong?

8. Please tell me what I am doing wrong - DAO parameter Append Query :(

9. What am I doing wrong? -MultiSelect List box

10. Select Case - What am I doing wrong?

11. What am I doing wrong (easy).

12. OLE problem, or what am I doing wrong?

 

 
Powered by phpBB® Forum Software