Subject RE: [IBO] Duplicating rows
Author Helen Borrie (TeamIBO)
At 04:59 PM 04-03-02 +0200, you wrote:
>Ok, I can do that, but what about normal record inserting - when will the
>generator be called then?
>(feeling very stupid and confused :)

Yes, don't do anything different - just don't use GeneratorLinks on this
dataset at all. SetGeneratorLinks calls Gen_ID() anyway. Just make
certain you do the calls to Gen_ID() in your BeforePost event. I suggest
that you move the DuplicateRow action into a separate procedure so that you
can put some very simple conditioning into your BeforePost to get the other
fields filled before it moves on to the generator-grabbing code.

Oh, btw, there was an element missing in the Gen_ID() syntax I gave you -
it's actually a method of either the IB_Connection or of the IB_Statement
class. You can call either, but you'll need to include the object-identifier.

Helen Borrie (TeamIBO Support)

** Please don't email your support questions privately **
Ask on the list and everyone benefits
Don't forget the IB Objects online FAQ - link from any page at