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.
Comp: function(const s1, s2: string): Boolean;
if CheckBox1.Checked then
Comp := ContainsText
Comp := AnsiStartsText;
source: [WayBack] Damned ! var Comp : function(const s1, s2: string): Boolean; begin if CheckB… – Paul TOTH +Filed under: Delphi, Development, Software Development