[DUG] To post or not to post.
Neven MacEwan
neven at mwk.co.nz
Sun Feb 15 08:38:03 NZDT 2009
Marshland Engineering wrote:
> 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.'
>
this is because the form is only 'created' once, look at OnShow,
Are you not using data aware controls and datasources, they do this for you
> 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
>
>
>
Not sure what you mean by 'to or from each record', as you move records
on the file you are updating it should
post
>
> _______________________________________________
> 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
>
>
>
More information about the Delphi
mailing list