Hi,
While programming last night I came across the following scenario:
Table1.Insert;
{FiledByName assignments}
Table1.Post;
Table2.Insert;
{FiledByName assignments}
Table2.Post;
Table2.Insert; //Table two gets 2 records inserted (not a typo)
{FiledByName assignments}
Table2.Post;
That is basically what my code looks like. Now if I were doing this in a stored procedure, I would have added "Begin Transaction" at the start and "Committ" at the end of the code. But I am doing this in Lazarus.
How can I accomplish this in Pascal/Lararus?