Subject An example - please
Author SLSolutions@aol.com
Hello:

I am a total beginner at Interbase and IBO. I am converting
Delphi5/Paradox applications to Delphi5/IBO/IB6. In reading the
posts, I can see that I have a Paradox mindset. I have been trying,
with no luck, to find a book on using Delphi/Interbase but until I
do, I want to get off on the right foot. If someone could give me a
basic example of how to properly code this using Interbase:

Assume a basic file maintenance form where user can add, modify,
delete records. I realize I could user a navigation bar and allow it
to handle the adds, mods, delete, etc but for learning purposes, I
would like to handle this myself.

On my form I have 4 buttons. Add, Modify, Save, Cancel. I also have
numerious DBEdits linked to the various fields in my table. In my
Paradox verison my database logic is as follows:

Add Button:
Append;

Modify Button:
Edit;

Save Button:
Post;

Cancel Button:
Cancel:

The user presses the Add Button, enters data in the DBEdits, then
either presses the Save or Cancel buttons. I can see my reading the
posts that this IS NOT the way it should be handled with Interbase.

Assuming the above form, how should the add be handled? When the
user presses the Add Button, if I don't Append, what do I do?

Any example would be greatly appriciated.

Thanks.