var
len, i: integer;
temp: string;
begin
AStr := trim(AStr);
AStr := StringReplace(AStr, ')(', ')*(', [rfReplaceAll]);
len := length(AStr);
temp := AStr;
for i := 1 to len-2 do
begin
if ((AStr in ['0'..'9','.']) and (AStr[i+1] = '(')) then
insert('*',temp,i+1);
end;
end;
上面这段还里面的insert还是是用X3的什么命名空间?为什么在delphi下运行没有错.在X3报错?
AStr := Business.System.SysUtils.trim(AStr);
AStr := Business.System.SysUtils.StringReplace(AStr, ')(', ')*(', [Business.System.TReplaceFlagsEnum.rfReplaceAll]);
len := length(AStr);
temp := AStr;
for i := 1 to len-2 do
begin
if ((AStr in ['0'..'9','.']) and (AStr[i+1] = '(')) then
Business.System.StringUtils.Insert('*',temp,i+1);
end;