I actually use OLE automation under Free Pascal, but some objects have properties that use the words reserverd as names, so I cannot compile the code.
check this sample
MyObj : OleVariant;
begin
MyObj := CrealeOleObject('AObject');
MyObj.Descriptor := Param1;
MyObj.Type := Param2;
this is mistake
StdOleAux.pas (783.15) Fatal: syntax error, "identifier" expected, but "TYPE" found
so the question is, how can I access these properties in FPC when they have a name that is a reserved word?
FPC 2.2.4
Lazarus 0.9.28.2
via {$MODE DELPHI}
source
share