...To solve this problem just assign 0 to the category field before you save it.
You will see that the program goes into error because it says that the table in the database does not contain the "category" field. This is true because it is a fklookup field added on the dataset to make the grid graphically usable. How can I save by telling him to ignore that field?
...
For example, I don't recognize compile time options such as "-dNoRefreshAfterInsert".