如果我DBNavigator1.BtnClick(nbPost)模拟点击DBNavigator的post 按钮,而nbPost按钮此时是不可点击的,就会报错:
---------------------------
Debugger Exception Notification
---------------------------
Project MarketQuery.exe raised exception class EDatabaseError with message 'ADOQryQuestion: Dataset not in edit or insert mode'. Process stopped. Use Step or Run to continue.
---------------------------
OK   Help   
---------------------------怎么样才能避免这个错误?