⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mapbasi 错误处理示例.mb

📁 很多的MAPINFO的常见问题下载后可以学习很有帮助
💻 MB
字号:
'*************************************************************************
'*  The following is an example of how to correctly set up multiple
'*  error checking routines.    
'*************************************************************************  

Include "mapbasic.def"

Declare Sub Main

Sub Main

	Onerror Goto Notfound			'If error run error message
		Open Table "C:\fred"
		Note "No error on first try"

	Nexterrorcheck:
	  Onerror Goto Nextnotfound
		Open Table "C:\Barney"
		Note "No error on second try"

		Exit Sub

'*******  Error Routines  ********
	Notfound:
		Note "First table not found"
		Resume Nexterrorcheck			'Return and Continue program 

	Nextnotfound:
		 Note "Second table not found"

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -