Implicit POST ?
From: Franco Jommi (franco.jommmi_at_tin.it)
Date: 01/25/04
- Next message: Marco van de Voort: "Re: Data Type Converter"
- Previous message: Maarten Wiltink: "Re: Unix 4.3BSD File System"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 25 Jan 2004 15:08:23 GMT
I have a BeforePost routine that performs a few cheks before accepting the
data typed by the user in a DBGrid appended row. If the checks are passed,
my routine ends with a specific POST statement to consolidate the data (just
before the post, the BeforePost event is deactivated to avoid an infinite
loop, and then reactivated).
I have a <Write> button to end the changes the user wants to make, but I
used a BeforePost event to cater for the situation where the user fills the
data and then moves the cursor to another row, ignoring the button.
I knew that moving the cursor of a table form one row to another (say in a
DBGrid) while in edit mode is just like making a POST, but I found that in
this case, my routine writes twice the same record.
Did you know this ?
- Next message: Marco van de Voort: "Re: Data Type Converter"
- Previous message: Maarten Wiltink: "Re: Unix 4.3BSD File System"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]