Sorry! my English is poor. and I'm a Lazarus Beginner.
I write a program like: (open a doc and goto bookmark )
Procedure Word_Goto_Bookmark( aWordDoc , aBookMark, Fill_String;String);
Var oW : Variant;
Begin
oW:=CreateOleObject('Word.Application');
oW.documents.Open( aWordDoc ,TRUE);
oW.Visible:=True;
If oW.ActiveDocument.Bookmarks.Exists( aBookMark ) Then
Begin
oW.Selection.goto(-1,,,aBookMark); //Lazarus Error But Delphi OK.
oW.Selection.TypeText(Fill_String);
End;
End;
in Delphi Compiler & Run OK.
But in FPC / codeTyphone / Lazarus Compiler say Syntax Error, "identifier" excepted but "GOTO" found
How Can I slove the problem? Thank!