- 相关推荐
VB编程:使用Debug.Print调试
尽量使用Debug.Print进行调试
在很多初学者的调试中,用MsgBox来跟踪变量值.其实用Debug.Print不仅可以达到同样的功效,而且在程序最后编译过程中,会被忽略.而MsgBox必须手动注释或删除.
通常:
MsgBox nName
应该:
Debug.Print nName
在重复对某一对象的属性进行修改时,尽量使用With....End With
通常:
Form1.Height = 5000
Form1.Width = 6000
Form1.Caption = "This is MyLabel"
应该:
With Form1
.Height = 5000
.Width = 6000
.Caption = "This is MyLabel"
End With
这种结构程序执行效率比较高,特别在循环语句里,
VB编程:使用Debug.Print调试
,资料共享平台
《VB编程:使用Debug.Print调试》(https://www.unjs.com)。【VB编程:使用Debug.Print调试】相关文章:
VB编程:使用枚举的情况05-15
android面试调试技巧06-16
C语言编程题06-15
搜狐编程笔试题08-28
10条PHP编程习惯10-01
c 面试编程问题08-11
c语言面试编程题09-11
计算机编程比赛获奖感言08-24
计算机编程笔试题目08-09
香水使用的礼仪06-28