Subject Re: [IBO] append doesn't pull generator value
Author Lucas Franzen
Boris Schlüszler schrieb:
>
> Thanks Marco!
>
> Now it works.
> My error was: I set FieldByName('ID').AsString:=''
> So it seems, if it is declared with ANY value, the generator value isn't copied.

Boris,

It is assigned.
But if you assign another value it will be overwritten with the new
value.

If you use GeneratorLinks the value will be assigned as soon as the
INSERT method of the query will be called.

So assigning another value will always be AFTER that event, thus
overwriting the generated value.

Luc.