OverbyteIcsV7Gold Delphi Coding Standards

ICS & MidWare Coding Style

THIS A WORK IN PROGRESS!

1. Keywords

All Delphi keywords are written in lower case except data types.

function Demo(const Value: String): String;  
begin  
  Result := 'This is my demo';  
end;  
  1. Data Types
    Built-in data types are written in lower case except the first letter.
    All new data types are created using concatenated words in lower case with each first letter in uppercase preceded by ‘T’. If a data type is a pointer, then the first letter ‘T’ is replaced by ‘P’.
TMyOwnDataRecord = record  
  Street: String;  
  Value: Integer;  
end;  
PMyOwnDataRecord = ^TMyOwnDataRecord;  
zip 文件大小:3.94MB