Page tree
Skip to end of metadata
Go to start of metadata

报表表达式中,还可以使用一些特殊的对象或函数,如下表:

对象或函数

说明

Code

特指脚本代码,引用脚本中的函数时使用。例如:
=Code.SetColor()

Nothing

空指针对象,常用于判断表达式。例如:
=IIF(x is Nothing, 1+2, 3+4)

System.DbNull.Value

数据字段空值(NULL),常用于判断表达式。

Code.UserContext.GetValue

取用户上下文信息,专用于使用定制安全提供器实现单点登录的场合。例如:
=Code.UserContext.GetValue("DepId") 返回当前用户所属部门的代码。其中DepId必须在定制安全提供程序中定义。

ReportItems

取报表内其他元素。例如:
=ReportItems.TextBox23.Value 返回文本框TextBox23的内容。


  • No labels