Deactivate huge lines in Delphi 2010

I'm new to Delphi, and I was migrating a very old Delphi project to Embarcadero RAD Studio 2010. I found a problem using strings. Here is the code:

ProgramaResultadosType = record
    Version: string;
    TituloPrincipal   : string;
    BloquesResultados : VectorBloquesResultadosType;
end;

FileOfProgramaResultadosType  = file of ProgramaResultadosType;

And the mistake ...

"E2155 Type '% s' needs to be completed - not allowed in file type

I know this is a known bug for many delphi developers when you do not specify the line size.

Basically, I would like to deactivate the huge lines directive, like older versions of RAD Studio, but I can’t find out in the 2010 version.

+5
source share
1 answer

Just use instead:

ProgramaResultadosType = record
    Version: shortstring;
    TituloPrincipal   : shortstring;
    BloquesResultados : VectorBloquesResultadosType;
end;

But keep in mind that:

  • RTL string: string shortstring;
  • Delphi ( Delphi 2009) string Unicode: shortstring ( Ansi) UnicodeString;
  • , ProgramaResultadosType = packed record , ( Delphi 4, AFAIR).

, :

  • , , ;
  • , Unicode (, , Midas, SQLite3 ).

Unicode Delphi:

+10

All Articles