Oracle Objects for OLE
Release 8.1.7

Part Number A85257-01

Library

Product

Contents

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


 
Oracle
Copyright copy; 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Product

Contents