📄 mapbasi 错误处理示例.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 + -