Subject | Re: [IBO] append doesn't pull generator value |
---|---|
Author | Lucas Franzen |
Post date | 2001-12-03T16:14:34Z |
Boris Schlüszler schrieb:
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.
>Boris,
> 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.
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.