[DUG] To post or not to post.

Dave O'Brien dave at ICCS.CO.NZ
Tue Feb 17 09:56:45 NZDT 2009


I suspect you need to move the .edit to the onshow of the second form,
unless you are freeing the form and re-creating it when it is called by
the first form...

-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Marshland Engineering
Sent: Saturday, 14 February 2009 11:43 p.m.
To: delphi at delphi.org.nz
Subject: [DUG] To post or not to post.

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




_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.237 / Virus Database: 270.10.23/1953 - Release Date:
02/14/09 18:01:00



More information about the Delphi mailing list