Unit 1 source:
type cha = record
data1 : string;
data2 : String;
end;
type Tchadata = Array of cha;
var
A : Tchardata;
procedure TForm1.Button1Click(Sender: TObject);
begin
GetData(A);
end;
Unit2 source:
type cha = record
data1 : string;
data2 : String;
end;
type Tchadata = Array of cha;
procedure Getdata(var Data : Tchadata);
begin
end;
This is my Delphi code. But complied...
[Error] Unit1.pas: Types of actual and formal var parameters must be identical
Why?
I don't well english. Sorry.
Why it can not be compiled?
Getdata
procedure and make it a value parameter - Roman Marusyk