Hints to read zscript

From Documentation

Stop.png This documentation is for an older version of ZK. For the latest one, please click here.



When beginner first meet zscript, he usually get confused with "where is the declaration of such variable?". ZK use Beanshell as java interpreter. As Beanshell's manual says: Beanshell supports "loose" or dynamically typed variable. That is, you can refer to variables without declaring them first and without specifying any type. Also, zscript can access component's field and implicit object, they may look like strange undeclared variables to java programmer.

Some packages are imported implicitly by Beanshell, but some package have to be imported by developer.

Typical usage of zscript includes initialization and declaring global variables and methods.



Last Update : 2022/01/19

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.