
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 |
> > +----------------------------------------------------------------+