I'm trying to post data but I get dataset not in Edit mode.
I'm using a datamodule with a table defined on on - dsUnitInfo,
I have one dbedit field on a form with and ID in it. In code I set the
table to edit,
by doing this : module.table.Edit; This works fine as long as I'm on that
When I leave the form, I post the data. When I return the table is not
getting set back into Edit Mode on the show method. So when I close it I
get "can't post cause not in Edit mode'. I've tried to check to make sure
I was in edit mode but I can't seem to figure out the right syntax. This
is what I've tried.
if module.table.modified (doesn't work)
if module.dataset.state <> edit (didn't work)
How can I tell if the table is in edit mode?
Any help or guidance would be appreciated. Also any ideas on what I should
read to understand this better would help too.