Программирование - это просто
Advertisement
arrow arrow Delphi arrow Delphi: . 2 (differs, default, parameter, declarations)
01.02.2023 .
1:
C#
Delphi
Web-
Excel-
.
Delphi: . 2 (differs, default, parameter, declarations) E-mail
megabax   
10.01.2011 .

 Delphi: . 2 (differs, default, parameter, declarations)

Declaration of <> differs from previous declarations... . , , , :

Delphi:  .  2 (differs, default, parameter, declarations)

, , :

Delphi:  .  2 (differs, default, parameter, declarations)

Default parameter <> must be by-value or constant. ( ) . , , , :

procedure Proba(a:string='defalut');

:

procedure TfrmErrorTest.btnStartClick(Sender: TObject);

begin

   Proba();

   Proba('ddd');

end;

 

procedure Proba(var a:string='defalut');

. ? , :

procedure Proba1(var a:string);

begin

   a:='My value';

end;

:

procedure TfrmErrorTest.btnStartClick(Sender: TObject);

var s:string;

begin

   Proba1(s);

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

end;

, . , , default var. 

File type not allowed here. . , -. , :

  procedure Proba(a:TextFile);

:

  procedure Proba(var a:TextFile);

 For loop control variable must have ordinal type. . . , :

procedure Proba1(var a:string);

var i:double;

begin

   a:='My value';

   for I := 0 to 10 do

end;

Function needs result type. . , , . :

function Proba(var a:TextFile);

:

function Proba(var a:TextFile):string;

Identifier expected but <-> found. . , Function. 6

function (var a:TextFile):string;

 

Identifier redeclared <>.<> , . , , . 

 

Illegal character in input file <>. , "" , }, {. 

 

Incompatible types < >. . . , z - , z:= 0 ( ).

Label already defined: <>. <> . 

Left side cannot be assigned to. He . : , -. 

Line too long. 255 . , "" , , :

ar:array[3..2] of integer;

ar:array[2..3] of integer

 Missing operator or semicolon. ( ) . ';' ( ). :

 Delphi:  .  2 (differs, default, parameter, declarations)

Not enough actual parameters. He . "" (), , .

.

 


, ,    "Turbo Delphi", "Borland Software Corporation.


 

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