procedure TForm1.Button1Click(Sender: TObject);
var
do
c,app
levariant;
s:string;
begin
do
c:=createOleobject('word.Document');
app:=doc.application;
app.Selection.typetext(Memo1.text);
app.Selection.wholestory;
app.selection.select;
app.WordBasic.ToolsSCTCTranslate(0,0,0);//??Ác
// app.WordBasic.ToolsTCSCTranslate(0,0,0);//Ác??
s:=app.selection.text;
delete(s,length(s),1);
s:=stringreplace(s,#13,#13#10,[rfReplaceAll]);
memo1.text:=s;
do
c.close(0);
end;
我調用word的功能,卻在createOleobject不能通過,提示[Error] Unit1.pas(33): Undeclared identifier: 'createOleobject',請問該怎樣定義它