Программирование - это просто
Advertisement
arrow arrow Delphi arrow Delphi: . 3 (declaration, type, memory)
06.02.2023 .
1:
C#
Delphi
Web-
Excel-
.
Delphi: . 3 (declaration, type, memory) E-mail
megabax   
01.05.2011 .

 Delphi: . 3 (declaration, type, memory)

 Need to specify at least one dimension ... SetLength . :

procedure TfrmErrorTest.btnStartClick(Sender: TObject);

var s:string; aa:array of integer;

begin

   setLength(aa);

   Proba1(s);

   messageDlg(s,mtInformation,[mbOk],0);

end;

 

setLength(aa,10);

, :

setLength(aa,10,15);

. . 

Number of elements differs from declaration. . :

const ar:array[1..2] of integer=(1,2,3);

Operator not applicable to this operand type. . : '' or ''; 'Text1'* 'Text2'.

Order of fields in record constant differs from declaration. - . , :

type TRec=record

       a:integer; b:string;

end;

 

const a:TRec=(b:'d';a:2);

:

type TRec=record

       a:integer; b:string;

end;

 

const a:TRec=(a:2;b:'d');

Out of memory.

Statement expected but <-> found. . , (<->). Procedure <> Function <> . 

 Sets may have at most 256 elements. ( Set) 256 . 

There is no overload version of <> that can be called with these arguments. <>, . : IntToStr(x), - .

Too many actual parameters. , . , . :

procedure Proba1(a:integer);

begin

  //some operators

end;

 

 

procedure TfrmErrorTest.btnStartClick(Sender: TObject);

begin

  Proba1(1,2);

end;

 Type actual and formal var parameters must be identical. -. :

procedure Proba1(var a:integer);

begin

  //some operators

end;

 

 

procedure TfrmErrorTest.btnStartClick(Sender: TObject);

var a:string;

begin

  Proba1(a);

end;

Type of expression must be <>. . , While Until . :

procedure TfrmErrorTest.btnStartClick(Sender: TObject);

begin

  while 1 do //some operators

end;

:

procedure TfrmErrorTest.btnStartClick(Sender: TObject);

begin

  while SomeVariable=1 do //some operators

end

 

Undeclared identifier: <>. <>. , . , , . 

Unexpected end of file in comment started on line <N>. , -  

 

Unsatisfied forward or external declaration <>. , ( , ). 

Unterminate string. He - string.

.

 

( 06.02.2013 . )
 
« .   . »
 
© 2023 Программирование - это просто
Joomla! - , GNU/GPL.
© 2005-2008 Joom.Ru - Joomla!
Design by Mamboteam.com | Powered by Mambobanner.de
  .