On 3/1/2013 17:57, Sven Barth wrote:
[...]
Alternatively if you don't need to check the hierarchy, but can live with an
exact match you can do this:

=== example begin ===

procedure checkLibrariesAndConnect(db: TSQLConnection);
begin
case LowerCase(db.ClassName) of
// Note: .ClassName won't work here
'TPQConnection': ...;
'TIBConnection': ...;
end;
end;


is there a bug here? i would expect "LowerCase(anything)" to return all lower case characters... that means that 'TPQConnection' would not match since it contains uppercase characters...

what am i missing?
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to