calculation question(100分)

  • 主题发起人 主题发起人 kwang
  • 开始时间 开始时间
K

kwang

Unregistered / Unconfirmed
GUEST, unregistred user!
I want to calculation the string expression,
for example,
var
s:string;
a,b,c,d:integer;
.........
a:=5;
b:=6;
c:=7;
d:=8;
s:='(a+b)*(a-c/d)'
I remember I can do it by '&' in foxpro,
but I don't know what I can do by DELPHI,
Who can help me?
 
Delphi没有现成的方法,得自己编
 
Delphi不支持宏的
 
You cannot calculate the string expression in delphi directly,
but you can find out some free components on web to solve it.
 
非得这样的话,得自己做了,
用 expression 查一下。
 
多人接受答案了。
 
后退
顶部