<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I am porting an older Delphi project to Lazarus/FPC which
analyzes the internal structure of PowerPoint files using OLE
automation. While the overall program is working I am stuck with
some OLE properties which have the name of Pascal keywords, e.g.
Shape.<b>Type </b>or ColorEffect.<b>To</b>. <br>
</p>
<p>FPC 3.0.4 and trunk refuse to compile lines like</p>
<p><tt> DisplayValue('Type', MsoShapeTypeStr(AShape.Type), true);</tt></p>
<p>even if {$MODE DELPHI} is used. AShape is an OLEVariant,
MsoShapeTypeStr a function which converts the integer value of
AShape.Type to a string. The error message is 'Fatal: Syntax
error, "identifier" expected but "TYPE" found'. <br>
</p>
Any idea how I could make this work?<br>
</body>
</html>