Damned ! var Comp : function(const s1, s2: string): Boolean; begin if CheckB…

  

One of my main gripes about lots of RTL/VCL/FMX code: conventions are often lacking.
Which means one of the below functions starts with Ansi (but does a Unicode operation) and the other has the parameters in reverse.

var
Comp: function(const s1, s2: string): Boolean;
begin
if CheckBox1.Checked then
Comp := ContainsText
else
Comp := AnsiStartsText;
end;

–jeroen
source: [WayBack] Damned ! var Comp : function(const s1, s2: string): Boolean; begin if CheckB… – Paul TOTH +Filed under: Delphi, Development, Software Development

Comments are closed.