Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Exception SetVariant

edited December 2007 in General
Hi,

Could it be that in ppVar.SetVariant exists an error if FDataType is
dtChar and Value = ''?

(RB 10.07)

procedure TppVariable.SetVariant(Value: Variant);
begin

{if Null or Empty, assignment will raise exception}
if VarType(Value) in [varNull, varEmpty] then Exit;

case FDataType of
dtBoolean: FBoolean := Boolean(Value);
dtChar: FChar := String(Value)[1];

...

Regards,
Christian

--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/

Comments

This discussion has been closed.