在delphi 5 里,下面的code是可以compile 的,但在delphi 8 中,老是报error:
/***********************
[Error] test.pas(8): Type 'Array' needs initialization - not allowed in variant record
[Error] test.pas(9): Type 'Array' needs initialization - not allowed in variant record
**************************/
请大侠们帮忙看看啊,不胜感激!!!!type BigNum = record
case Integer Of
0: (Contents: array[0..131] of Cardinal);
1: (Bytes: array[0..527] of Byte);
end;
/***********************
[Error] test.pas(8): Type 'Array' needs initialization - not allowed in variant record
[Error] test.pas(9): Type 'Array' needs initialization - not allowed in variant record
**************************/
请大侠们帮忙看看啊,不胜感激!!!!type BigNum = record
case Integer Of
0: (Contents: array[0..131] of Cardinal);
1: (Bytes: array[0..527] of Byte);
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货