Skip Headers

Oracle® Objects for OLE Developer's Guide
10g Release 1 (10.1)

Part Number B10118-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Master Index
Master Index
Go to Feedback page
Feedback

SetAfterCommitFlags() Subroutine

The SetAfterCommitFlags() subroutine is called at the end of the commit event procedure. SetAfterCommitFlags() re-enables disabled buttons and textboxes and sets the DoUpdate and DoAdd flags to false.

Sub SetAfterCommitFlags()

'disable commit and re-enable add and update buttons

Commit.Enabled = False

AddNew.Enabled = True

cmdUpdate.Enabled = True

'enable the other buttons

cmdFirst.Enabled = True

cmdPrevious.Enabled = True

cmdNext.Enabled = True

cmdLast.Enabled = True

cmdFind.Enabled = True

cmdUpdate.Enabled = True

AddNew.Enabled = True

DoUpdate = False

DoAdd = False

txtEmpno.Enabled = True

End Sub