M
minehe
Unregistered / Unconfirmed
GUEST, unregistred user!
代码段如下:
...
type
TOpenArray:array[0..32] of TVarRec;
TArgs = class
public
OA : ^TOpenArray;
OAS : Integer;
end;
...
var
l_args : TArgs;
begin
...
Format(...,Slice(l_args.OA^,l_args.OAS));
...
end;
这段代码报错,提示TOpenArray与开放数组不兼容,如果修改这段代码?
...
type
TOpenArray:array[0..32] of TVarRec;
TArgs = class
public
OA : ^TOpenArray;
OAS : Integer;
end;
...
var
l_args : TArgs;
begin
...
Format(...,Slice(l_args.OA^,l_args.OAS));
...
end;
这段代码报错,提示TOpenArray与开放数组不兼容,如果修改这段代码?