如果写完了才加,可以在页面开头加上班option explicit(强制变量声明),然后测试所有的方法和属个性,直到没有毛病为止。
基于60个网页-相关网页
强制声明变量 Option Explicit
强制显式声明变量语句 Option Explicit
强制变量声明
Mandatory variable declaration
以上为机器翻译结果,长、整句建议使用 人工翻译 。
有了类型推断,编译器可以通过强制解决计算出变量类型,而不是使程序员明确声明它们。
With type inference, the compiler figures out the types of variables based on constraint solving, rather than making the programmer declare them explicitly.
youdao
应用推荐
模块上移
模块下移
不移动