public java.lang.String getVersion( )
返回脚本版本字符串。
脚本版本字符串。
以下示例显示如何获取脚本版本并使用它作决定。
此示例假定您拥有一个名为 _cc 的 DBConnectionContext 实例。
// A method that uses the script version public void handleEvent() { // ... String version = _cc.getVersion(); if (version.equals("My Version 1")) { // ... } else if (version.equals("My Version 2")) { // ... } } // ... |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |