在 X++ 中获取 axc 文件名和图层

问题描述

我想知道识别用户当前使用的AOS名称和当前使用的层的语法或代码是什么?

enter image description here

解决方法

参见以下示例:

xSession xSession;
xInfo    xInfo;
;

xSession = new xSession();
info(strFmt("Current AOS - %1",xSession.AOSName()));

info(strFmt("Current user - %1",curUserId()));

xInfo = new xInfo();
info(strFmt("Current layer - %1",xInfo.currentAOLayer()));

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...