VCL语法教程——3.模块的使用
- 模块的定义,模块不能嵌套
使用begin_module 和 end_module 构成模块
例:定义一个名叫mymodule的模块
begin_module mymodule
code here
code here
exit
end_module
- 模块的调用
使用enter-exit来调用和退出模块
例:调用上例的mymodule
enter mymodule
- 函数,VCL的函数都是预定义的,只是提供接口使用。
注意事项:1.函数的返回值不能直接作为另一个函数的变量带入。
#错误代码
put_spy_bin(random())
#正确代码
senddata euqals user12
senddata=random()
put_spy_bin(senddata)