且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

更新访问数据库中的数据

更新时间:2023-02-08 16:34:12

谁知道?你不 - 我们不 - 而且我们都没有人知道,因为你丢失了关于错误原因的任何和所有信息。



当你使用一个空的 Catch 块时,你说我不在乎错误是什么,让我们忽略它并继续。



添加一些代码 - 至少:

Who knows? You don''t - and we don''t - and none of us can find out, because you are throwing away any and all information on the cause of the error.

When you use an empty Catch block, you are saying "I don''t care what the error is, let''s ignore it and continue".

Add some code - at a bare minimum:
Catch ex As Exception
    MessageBox.Show(ex.Message)
End Try

这将让您开始找到问题所引起的问题!

Which will give you a start of finding what the problem is caused by!