也可以调用其他函数和sub(类以外的),甚至可以使用use语句引用script库,从script库中调用类、函数和sub。
You can also call other functions and subs (outside of the class), and you can even call classes, functions, and subs from script libraries that are referenced with a Use statement.
因此,全局参数虽然可以被引用,但它们不能在函数中直接赋值(除非它们用global 语句命名)。
Thus, global variables cannot be directly assigned a value within a function (unless named in a global statement), although they may be referenced.
应用推荐