I'm creating an application that works with MS Word. Here is the code for setting range boundaries:
v1:=Doc1.Paragraphs.Item(8).Range.Start;
v2:=Doc1.Range.End;
r:=doc1.Range(v1,v2);
Compiler gives an error:
unit2.pas(237,16) Fatal: Syntax error, "identifier" expected but "END" found
i.e., compiler interprets "End" in "Doc1.Range.End" as the end of cycle/function/etc.
How to avoid this error? Lazarus 1.0.8, FPC 2.6.2.
Thanks,
Michael.