Hi, In the following program:
program worksheet; {$mode objfpc}{$H+} type TWorksheet = packed object private FProp: string[5]; //FProp: Integer; public property Prop: ShortString read FProp; //property Prop: Integer read FProp; end; begin end. I got an error while compile: worksheet.lpr(9,42) Error: Incompatible types: got "TWorksheet.ShortString" expected "ShortString" I wonder who defined "TWorksheet.ShortString"? Why string[5] is not compatible with ShortString? Thanks!
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal