[DUG] To post or not to post.

Marshland Engineering marshland at marshland.co.nz
Sat Feb 14 23:43:29 NZDT 2009


I'm having problems with editing and posting records.

Sometimes when I edit a field, I get 'Not in edit mode'

Is this logic correct ?

I have two files.

Senario 1

I remain on a single record for this operation

Is this correct when I call a new form ?

Using the OnCreate event of the new form, I put the file into Edit mode.
I perform several operations and

OnClose do a Post.

It seems to work fine the first time, but when I call the form a second 
time, I get 'not in edit mode.'

Senario 2

When I'm on the new form, I select data from a 2nd file to update the first.
The data is added or retreived from several records in the second file. Do I 
need to execute Edit and Post each time I move to or from each record?

When do I use Post and when RecordUpdate?

Thanks






More information about the Delphi mailing list