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可以是你指定的字符串变量