注册 登录
编程论坛 Delphi论坛

Delphi word替换方法参数不足求帮忙看下

uu03 发布于 2013-02-27 10:23, 684 次点击
var
  findtext, matchcase, matchwholeword, matchwildcards, matchsoundslike,
  matchallwordforms, forward, wrap, format, replacewith, replace: olevariant;
begin
  findtext := '<#name> ';
  matchcase := false;
  matchwholeword := true;
  matchwildcards := false;
  matchsoundslike := false;
  matchallwordforms := false;
  forward := true;
  wrap := wdfindcontinue;
  format := false;
  replacewith := 'delphi';
  replace := true;

  wrdcmnt1.range.find.Execute( findtext, matchcase, matchwholeword,
  matchwildcards, matchsoundslike, matchallwordforms, forward,
  wrap, format, replacewith, replace);
end;

wrdcmnt1是wordDocument的name
1 回复
#2
wp2319572013-02-27 10:25
你想问啥
1