Error: Got "OleVariant" expected "Variant"
Original Reporter info from Mantis: mspiller
-
Reporter name:
Original Reporter info from Mantis: mspiller
- Reporter name:
Description:
procedure TForm1.Button1Click(Sender: TObject);
var
tmp: OleVariant;
a: OleVariant;
b: OleVariant;
begin
tmp := VarArrayCreate([0,2], varVariant);
tmp[0] := a;
tmp[1] := b;
end;
unit1.pas(43,14) Error: Call by var for arg no. 1 has to match exactly: Got "OleVariant" expected "Variant"
When tmp changed to Variant it works.
Mantis conversion info:
- Mantis ID: 10495
- Fixed in version: 2.2.2
- Fixed in revision: 10453 (#914a8ec4)