expressionhandle表达式中使用非ocl变量

来源:互联网 发布:亚克力电脑编程设计 编辑:程序博客网 时间:2024/05/16 07:32

expressionhandle的expression中要使用变量,一般要用到variablehandle变量,很麻烦.如一般的字符串变量可使用以下方法解决

c#
eh.Expression =
System.String.Format("Person.allInstances->orderBy({0})', button1.Text);

Delphi:
eh.Expression :=
System.String.Format('Person.allInstances->orderBy({0}),
´[button1.Text]);

其中button1.text可以是你指定的字符串变量

 
原创粉丝点击