Another variant problem
-
- Registered: Oct 30, 2008
- Last visit: Mar 18, 2009
- Posts: 10
Comparing an variant with an integer variable results in an "Internal Compiler error".
Example :
Code
var
v : variant;
i : longint;
Begin
v := 1;
i := 2;
if v = i then // Internal compiler error
i := 0;
End;
Comparing with a string or a constant value does not fail !
Example :
Code
var
v : variant;
i : longint;
s : string;
Begin
v := '1';
s := '2';
if v = s then // No error
s := '';
v := 1;
i := 2;
if v = 1 then // No error
i := 0;
End;
Kim Foder
- Moderated by:
- Admins-Forum
Users on-line
- 0 users
This list is based on users active over the last 30 minutes.