Y
ycmzp
Unregistered / Unconfirmed
GUEST, unregistred user!
高分求教!!![Error] PubKsqt3.pas(50): Operator not applicable to this operand type?(100分)<br />我有一个函数:
type
TArrayD= Array of Array of Double;
procedure ksqt3(n, k:integer; x:TArrayD; f1, f2, epsouble;
xx, b, v,s,dt,ye,yr:TArrayD; r:Array of Double);
implementation
procedure ksqt3(n, k:integer; x:TArrayD; f1, f2, epsouble;
xx, b, v,s,dt,ye,yr:TArrayD; r:Array of Double);
var j,i,ii:integer;
var m, q, z, phi, sd, it, vmi, vmx, imi, imx, fmi, fmx, l:Variant;
begin
.......
z:= z + (x[ii, i] - xx)*(x[ii, j] - xx[j]);
.........
end;
z:= z + (x[ii, i] - xx)*(x[ii, j] - xx[j]); 出错!提示:
[Error] PubKsqt3.pas(50): Operator not applicable to this operand type
怎么回事?大侠们!!!
另外,我的ADOTABLE表中的字段默认值为“TRUE”,连接到DBGRID中,添加记录显示
为“FALSE”,退出程序重新打开,则该记显示为“TRUE”,怎么回事,如何解决!!
type
TArrayD= Array of Array of Double;
procedure ksqt3(n, k:integer; x:TArrayD; f1, f2, epsouble;
xx, b, v,s,dt,ye,yr:TArrayD; r:Array of Double);
implementation
procedure ksqt3(n, k:integer; x:TArrayD; f1, f2, epsouble;
xx, b, v,s,dt,ye,yr:TArrayD; r:Array of Double);
var j,i,ii:integer;
var m, q, z, phi, sd, it, vmi, vmx, imi, imx, fmi, fmx, l:Variant;
begin
.......
z:= z + (x[ii, i] - xx)*(x[ii, j] - xx[j]);
.........
end;
z:= z + (x[ii, i] - xx)*(x[ii, j] - xx[j]); 出错!提示:
[Error] PubKsqt3.pas(50): Operator not applicable to this operand type
怎么回事?大侠们!!!
另外,我的ADOTABLE表中的字段默认值为“TRUE”,连接到DBGRID中,添加记录显示
为“FALSE”,退出程序重新打开,则该记显示为“TRUE”,怎么回事,如何解决!!