Board index » delphi » ReadInteger

ReadInteger

Hi! I'm trying to read from an ini file. My problem is that when I use
the ReadInteger() function I get an'Unknown Identifier' error. Anyone
knows why this can be?

Thanks in advance.

--
Matias Socolinsky
mat...@einstein.com.ar

 

Re:ReadInteger


Quote
Matias Socolinsky wrote in message <358DC626.B2063...@einstein.com.ar>...
>Hi! I'm trying to read from an ini file. My problem is that when I use
>the ReadInteger() function I get an'Unknown Identifier' error. Anyone
>knows why this can be?

I've used ReadInteger many times without a problem.

Can you post a sample of your code along with what's in your INIFile?

efg
_________________________________________
efg's Computer Lab:  http://infomaster.net/external/efg

Earl F. Glynn                 E-Mail:  EarlGl...@att.net
MedTech Research Corporation, Lenexa, KS  USA

Re:ReadInteger


Are you putting IniFiles in your Uses clause.  If this isn't the problem
then you might want to post a sample of your code which isn't working.
--

Rodney E Geraghty
GERA-Tech
Ottawa, Canada
gera...@ibm.net

Matias Socolinsky <mat...@einstein.com.ar> wrote in article
<358DC626.B2063...@einstein.com.ar>...

Quote
> Hi! I'm trying to read from an ini file. My problem is that when I use
> the ReadInteger() function I get an'Unknown Identifier' error. Anyone
> knows why this can be?

> Thanks in advance.

> --
> Matias Socolinsky
> mat...@einstein.com.ar

Re:ReadInteger


Thanks for answering. Yes, I put the INIFILES in the Uses clause.
My code is as follows:

         .
         .
         .
  table1.open;
  cIni := TIniFile.Create(s1);
  table1.Moveby(ReadInteger('Posicion', 'Lista', 0));
  cIni.Free;
         .
         .
         .

The ini file is:

[Posicion]
Lista=0

Thanks again.

Quote
Rodney E Geraghty wrote:
> Are you putting IniFiles in your Uses clause.  If this isn't the problem
> then you might want to post a sample of your code which isn't working.
> --

> Rodney E Geraghty
> GERA-Tech
> Ottawa, Canada
> gera...@ibm.net

> Matias Socolinsky <mat...@einstein.com.ar> wrote in article
> <358DC626.B2063...@einstein.com.ar>...
> > Hi! I'm trying to read from an ini file. My problem is that when I use
> > the ReadInteger() function I get an'Unknown Identifier' error. Anyone
> > knows why this can be?

> > Thanks in advance.

> > --
> > Matias Socolinsky
> > mat...@einstein.com.ar

--
Matias Socolinsky
mat...@einstein.com.ar

Re:ReadInteger


Hi! Thanks to all of you who answered, but I've already solved the "problem".

Other Threads