Hi Guys,
I'm having some trouble when I'm trying to Initialize a constant record when one of the types is a "VARIANT" one.
For example:
This WORKS:
const
myRec : array [0..1] of record Num : integer; Str : string; end =
(
(Num: 100; Str: 'ABC'),
(Num: 200; Str: 'DEF')
);
But this don't
const
myRec : array [0..1] of record Num : integer; Str : string; Test : Variant end =
(
(Num: 100; Str: 'ABC'; Test : VarArrayCreate([0,1], varInteger)),
(Num: 200; Str: 'DEF')
);
In fact what I want to do is create an Array inside my Record for generic data type and length, it should be something like this:
const
myRec : array [0..1] of record Num : integer; Str : string; Test : Variant end =
(
(Num: 100; Str: 'ABC'; Test : Array[0..2] of Variant = ('a', 100, 33.33)),
(Num: 200; Str: 'DEF'; Test : Array[0..1] of Variant = ('b', 200))
);
Is this possible?
Thanks,
ddVerne.
I'm having some trouble when I'm trying to Initialize a constant record when one of the types is a "VARIANT" one.
For example:
This WORKS:
const
myRec : array [0..1] of record Num : integer; Str : string; end =
(
(Num: 100; Str: 'ABC'),
(Num: 200; Str: 'DEF')
);
But this don't
const
myRec : array [0..1] of record Num : integer; Str : string; Test : Variant end =
(
(Num: 100; Str: 'ABC'; Test : VarArrayCreate([0,1], varInteger)),
(Num: 200; Str: 'DEF')
);
In fact what I want to do is create an Array inside my Record for generic data type and length, it should be something like this:
const
myRec : array [0..1] of record Num : integer; Str : string; Test : Variant end =
(
(Num: 100; Str: 'ABC'; Test : Array[0..2] of Variant = ('a', 100, 33.33)),
(Num: 200; Str: 'DEF'; Test : Array[0..1] of Variant = ('b', 200))
);
Is this possible?
Thanks,
ddVerne.