annmartinson
Programmer
I'm a gross beginner, decent in PHP, new to Delphi. I've copied some code from a tutorial that is in part >
when I attempt to compile I am getting "Undeclared identifier: 'IniFile'
I know this is basic, basic, but I have no idea what to do next. I am assuming something goes above in the 'uses' or 'type' section, but I have no idea what.
OS is Win2000, Delphi 7.0
thanks much!
Code:
procedure TForm1.FormCreate(Sender: TObject);
var
Ini: TIniFile;
begin
Ini := TIniFile.Create( ChangeFileExt( Application.ExeName, '.ini' ) );
try
ImportDir:= Ini.ReadString('General','ImportDir','\\Server\MDServe\Server\Data\Emc_new');
Top := Ini.ReadInteger( 'Form', 'Top', 100 );
Left := Ini.ReadInteger( 'Form', 'Left', 100 );
Caption := Ini.ReadString( 'Form', 'Caption', 'New Form' );
if Ini.ReadBool( 'Form', 'InitMax', false ) then
WindowState = wsMaximized
else
WindowState = wsNormal;
finally
TIniFile.Free;
end;
end;
when I attempt to compile I am getting "Undeclared identifier: 'IniFile'
I know this is basic, basic, but I have no idea what to do next. I am assuming something goes above in the 'uses' or 'type' section, but I have no idea what.
OS is Win2000, Delphi 7.0
thanks much!