unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
type
TTAS=array of array of real;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var
w:real;
p:integer;
TAS,S:TTAS;
T1,T2:REAL;
BEGIN
SETLENGTH(TAS,2,2);
W:=10;
TAS[0,0]:=2.1;
TAS[1,0]:=2.7;
S:=AB(W,TAS);[?][?]
T1:=S[0,1];
T2:=S[1,1];
end;
end.
unit Unit2;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;
type
TForm2 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
end;
type
TTAS=array of array of real;
var
Form2: TForm2;
implementation
{$R *.DFM}
FUNCTION AB(W:REAL;TAS:TTAS):TTAS;[?][?]
var
fj,fj1:string;
fk:boolean;
BEGIN
// 对数组TAS处理
.....
.....
RESUIT:=TAS;
end;
end.
将Unit2做成一个DLL。