本文介绍了想要生成错误消息wen im高于2得到错误.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨我执行了一个程序,从数据库中读取Excel工作表.它已成功完成.但是现在我要检查Excel工作表是否包含标题"productname",如果它不包含productname,那么我们将收到错误消息. . .
所以当时我想显示错误信息.然后只结束该程序.
没有进一步执行,想要跳过其余部分并结束程序
您可以使用break或stop或end向我发送一些代码吗?

引发异常不起作用
在广告中感谢plaese发送代码

解决方案



hii executed a program wer im reading excel sheet from database. it was successfully done. but now i want to check whether the excel sheet contains header "productname", if it doesnot contain productname then we will get error. . .
so at that time i want to display error msg. and end that program thier only..
no further execution, want to skip remaining part and end the program
can u send me some code using break or stop or end...

throw exception is not working
thanks in adv.. plaese send code

解决方案



这篇关于想要生成错误消息wen im高于2得到错误.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 08:16