Board index » delphi » Case sensitive Class name

Case sensitive Class name

Hallo,

Why are the following lines different ??

      tkaslbl = CLASS(TQRAvery7160)
and
      tkaslbl = CLASS(tqryavery7160)

I have a program that will change the case of a program. This fails with class
names.

If I have the second line, he can't find the ancestor TQRAvery7160.

Is this a bug???. I think the problem is a difference between the DFM and the
PAS.

The Graphical Gnome (r...@ktibv.nl)
Sr. Software Engineer IT Department
-----------------------------------------
The Unofficial Delphi Developers FAQ
http://www.gnomehome.demon.nl/uddf/index.htm

 

Re:Case sensitive Class name


Quote
The Graphical Gnome wrote:

> Hallo,

> Why are the following lines different ??

>       tkaslbl = CLASS(TQRAvery7160)
> and
>       tkaslbl = CLASS(tqryavery7160)

> I have a program that will change the case of a program. This fails with class
> names.

> If I have the second line, he can't find the ancestor TQRAvery7160.

> Is this a bug???. I think the problem is a difference between the DFM and the
> PAS.

        You're certain it's not a typo in your code? If you look closely
you see a typo in the code you _posted_...

--
David Ullrich

sig.txt not found

Re:Case sensitive Class name


On Tue, 11 Nov 1997 09:07:03 GMT, r...@ktibv.nl (The Graphical Gnome)
wrote:

Quote
>Hallo,

>Why are the following lines different ??

>      tkaslbl = CLASS(TQRAvery7160)
>and
>      tkaslbl = CLASS(tqryavery7160)

The second name has 2 y's in it?

Quote
>I have a program that will change the case of a program. This fails with class
>names.

>If I have the second line, he can't find the ancestor TQRAvery7160.

>Is this a bug???. I think the problem is a difference between the DFM and the
>PAS.

As far as I've seen, Delphi is not case sensitive.  It does care about
spelling, though.

Seriously:  if you think you have a bug, put together instructions to
reproduce it, and make sure that you type them correctly.  Nobody can
comment on your message because it has that spelling mistake in it,
it's not a complete program, and it's not even clear what you're
complaining about (who is "he" who can't find the ancestor?).

Duncan Murdoch

Other Threads